Ok so I think it is something to do with CORS but I have added the CORS
extension for Chrome and added my Firebase function url
here is the error:
1. HttpErrorResponse {headers: HttpHeaders, status: 500, statusText: "OK",
url:
"https://us-central1-quotes-cc05d.cloudfunctions.net/updateLikesCount",
ok: false, …}
1. error: "Error: could not handle the request↵"
2. headers: HttpHeaders {normalizedNames: Map(0), lazyUpdate: null,
lazyInit: ƒ}
3. message: "Http failure response for
https://us-central1-quotes-cc05d.cloudfunctions.net/updateLikesCount: 500
OK
"
4. name: "HttpErrorResponse"
5. ok: false
6. status: 500
7. statusText: "OK"
8. url: "
https://us-central1-quotes-cc05d.cloudfunctions.net/updateLikesCount"
9.
On Sunday, February 3, 2019 at 5:10:53 AM UTC, Sander Elias wrote:
>
> Hi John,
>
> Try logging things out with a , instead of a +
>
> console.log("here is the data: "+ data) ⇒ console.log("here is the data:
> ", data)
>
> Regards
> Sander
>
>
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.