Unable to reach firebase db for API Development on Google Cloud's Apigee API Platform Class Test

Not applicable

I am doing the course

API Development on Google Cloud's Apigee API Platform

As a part of it , "Test Your Proxy" details steps to reach the example proxy using postman (environment and collection are given in the course). I am seeing the following error:

{"fault":{"faultstring":"The Service is temporarily unavailable","detail":{"errorcode":"messaging.adaptors.http.flow.NoActiveTargets"}}}

In the previous course "

API Design and Fundamentals of Google Cloud's Apigee API Platform

", there was setup of Firebase which included scripts to setup up backend (setup.zip).

I do not see the backend - edge-developer-training-backend - created by the script to refer firebase in its Proxy Endpoint.

Has anyone else faced this issue?

0 6 306
6 REPLIES 6

Not applicable

On further checking, I can see that the Target Endpoint has UpdateTargetUrl.js defined which converts the url to firebase URL. That doesn't seem to be working. Any clue to proceed?

Not applicable

By looking at the Trace, I found that the request /v1/products/ is being converted to /db/products.json. But now the issue is that the base URL should have been replaced to firebaseio.com . I do not see that happening.

Where should I look for it?

jyothikiranr
Participant IV

@Anees KA Here are some steps that I wrote in a different thread on coursera. For your case, if the proxy is deployed successfully, check the second bullet point.

  • When running node setup -- Make sure your Firebase Host name doesn't contain https:// at the beginning and not leading slash ( / ) at the end. So your firebase hostname that you input at console should look like this apigee-developer-trainin-xxxxx.firebaseio.com without protocol and leading slash at the end.
  • Important -- In second step when creating proxy from spec, you are asked to enter proxy name, Proxy Base Path (Make Sure its /v1 -- it will auto populate as /products) , existing API (make sure its like https://xxxx.apigee.net/db) and product description. (these instructions are given on the course tutorial)
  • Continue with setup, and test your proxy

Reference : https://www.coursera.org/learn/api-development-apigee-gcp/discussions/weeks/1/threads/FAs-bdDWEeis_B...

Thanks a lot for your reply. I finally figured out what the issue was! In fact there was no issue! I deleted everything. And re-run everything - setup and then the proxy. It started working correctly!

I dont know what happened. I am trying to figure out the diff. I am perplexed. Things suddenly working after a reinstall(so to speak) is unacceptable! 🙂

Regarding the info you pasted, I had ensured that that was correct. In fact I figured out Trace tool - how to use it at least. Too much of an achievement for a newbie! 🙂

Glad that it worked out!