Why do I get this undefined property error message in my promise?

When my axios call fails, the code in catch() correctly displays the error message contained in err.response.data.message, which is defined. But when the axios call succeeds, I get this error in console: Uncaught (in promise) TypeError: Cannot read property ‘data’ of undefined How to fix that? Here’s my axios call code: mounted () { this.$axios.$get(`http://example.com/wp-json/project/v1/post/${this.$route.params.id}`)…

Why doesn’t granting ‘allAuthenticatedUsers’ member the ‘Cloud Functions Invoker’ role work for google cloud functions?

According to the Google documentation, The ‘allAuthenticatedUsers’ member would include anybody that is authenticated included regular gmail accounts. So I gave that member the ‘Cloud Functions Invoker’ role, thinking that any authenticated user should be able to invoke my google cloud function. That is not working. I get the following results: Error: Forbidden Your client…