Title: Calling AngularFireFunctions.httpsCallable results to error 404 because · Issue #1933 · angular/angularfire · GitHub
Open Graph Title: Calling AngularFireFunctions.httpsCallable results to error 404 because · Issue #1933 · angular/angularfire
X Title: Calling AngularFireFunctions.httpsCallable results to error 404 because · Issue #1933 · angular/angularfire
Description: Version info Angular: 6.0 Firebase: 5.5.5 AngularFire: 5.1.0 How to reproduce these conditions I created a service that aims to generate token from 3rd party service and used AngularFireFunctions to call a cloud function. import { Inject...
Open Graph Description: Version info Angular: 6.0 Firebase: 5.5.5 AngularFire: 5.1.0 How to reproduce these conditions I created a service that aims to generate token from 3rd party service and used AngularFireFunctions t...
X Description: Version info Angular: 6.0 Firebase: 5.5.5 AngularFire: 5.1.0 How to reproduce these conditions I created a service that aims to generate token from 3rd party service and used AngularFireFunctions t...
Opengraph URL: https://github.com/angular/angularfire/issues/1933
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Calling AngularFireFunctions.httpsCallable results to error 404 because","articleBody":"\u003c!--\r\n\r\nIMPORTANT! YOU MUST FOLLOW THESE INSTRUCTIONS OR YOUR ISSUE WILL BE CLOSED.\r\n\r\nThank you for contributing to the Angular and Firebase communities!\r\n\r\nHave a usage question?\r\n=======================\r\nWe get lots of those and we love helping you, but GitHub is not the best place for them and they will be closed. Here are some resources to get help:\r\n\r\n- Go through the Developer's Guide: https://github.com/angular/angularfire2#developer-guide\r\n\r\nIf the official documentation doesn't help, try asking through our officially supported channels:\r\n\r\n- Firebase Google Group: https://groups.google.com/forum/#!forum/firebase-talk\r\n- Stack Overflow: https://stackoverflow.com/questions/tagged/angular (include the firebase and angularfire tags, too!)\r\n\r\n*Please avoid double posting across multiple channels!*\r\n\r\nThink you found a bug?\r\n=======================\r\nYeah, we're definitely not perfect! Please use the bug report template below and include a minimal repro when opening the issue.\r\n\r\nHave a feature request?\r\n========================\r\nGreat, we love hearing how we can improve our products! Remove the template below and\r\nprovide an explanation of your feature request. Provide code samples if applicable. Try to\r\nthink about what it will allow you to do that you can't do today? How will it make current\r\nworkarounds straightforward? What potential bugs and edge cases does it help to avoid?\r\n\r\n--\u003e\r\n\r\n\r\n### Version info\r\n\r\n\u003c!-- What versions of the following libraries are you using? Note that your issue may already\r\nbe fixed in the latest versions. --\u003e\r\n\r\n**Angular:** 6.0\r\n\r\n**Firebase:** 5.5.5\r\n\r\n**AngularFire:** 5.1.0\r\n\r\n### How to reproduce these conditions\r\n\r\nI created a service that aims to generate token from 3rd party service and used AngularFireFunctions to call a cloud function. \r\n\r\n```typescript\r\nimport { Injectable } from '@angular/core';\r\nimport { HttpClient } from '@angular/common/http';\r\nimport { Observable } from 'rxjs';\r\nimport { AngularFireFunctions } from '@angular/fire/functions';\r\n\r\nimport { CreditCard } from '@core/models';\r\n\r\n@Injectable()\r\nexport class MagpieTokenService {\r\n private _generateToken;\r\n \r\n constructor(\r\n private http: HttpClient,\r\n private cloudFunctions: AngularFireFunctions\r\n ) { }\r\n\r\n generate(creditCard: CreditCard): Observable\u003cany\u003e {\r\n return this.generateToken(creditCard.generateFormValue())\r\n }\r\n\r\n protected get generateToken() {\r\n if(this._generateToken == null)\r\n this._generateToken = this.cloudFunctions.httpsCallable('generateToken');\r\n return this._generateToken;\r\n }\r\n}\r\n```\r\nNow when I try to use the service in my component, error 404 was raised and I noticed that it called \r\n`https://null-rik-app.cloudfunctions.net/generateToken`.\r\n\r\n\r\n","author":{"url":"https://github.com/jenersonj","@type":"Person","name":"jenersonj"},"datePublished":"2018-10-24T00:45:26.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":19},"url":"https://github.com/1933/angularfire/issues/1933"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4e3fcb59-75b4-2b00-3bbc-7da757b72688 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 86CC:D815E:4202C5:5C06C4:6A5A4D96 |
| html-safe-nonce | 173346e9e5ef0122af16c21b3be5bcb3149e4bd8c3c4dd8db3f1ef957c880519 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NkNDOkQ4MTVFOjQyMDJDNTo1QzA2QzQ6NkE1QTREOTYiLCJ2aXNpdG9yX2lkIjoiMzgyMTc2NDMyODE0NTE3ODAwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8e273526dc38333a27e3881e87d921342192945791555bcdfc7da04fd7184e69 |
| hovercard-subject-tag | issue:373259469 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/1933/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0fc4e25fe7de14b1336263d3e66f3576ed1bbf80d4b10b72a14a5b349a8885de/angular/angularfire/issues/1933 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0fc4e25fe7de14b1336263d3e66f3576ed1bbf80d4b10b72a14a5b349a8885de/angular/angularfire/issues/1933 |
| og:image:alt | Version info Angular: 6.0 Firebase: 5.5.5 AngularFire: 5.1.0 How to reproduce these conditions I created a service that aims to generate token from 3rd party service and used AngularFireFunctions t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jenersonj |
| hostname | github.com |
| expected-hostname | github.com |
| None | a793cd1fa898929111edad5857ee1f24ecf4bf7702525e67357cabc9df136fc3 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 311929384671aa49f385b6fcc680ae3933943203 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width