apigee-internal / microgateway

Microgateway: A lightweight Node.js based API gateway
Other
71 stars 77 forks source link

invalid response from region api #318

Open baselalrefaie opened 3 years ago

baselalrefaie commented 3 years ago

​hi, i have apigee private v 4.50.00 and i am trying to use microgateway on my windows pc (windows 10) i installed the latest version (edgemicro version is 3.1.7) and (nodejs version is v12.13.1), the installation was fine, but when i try to configure it i got the error "invalid response from region api", i did not get the key and secret i have apigee with 5 nodes setup so i provided the ip/port the second node as runtime url (router-message processor) and using virtual host with two IPs, the error is as attached, and when i try the link http://10.13.85.56:9002/edgemicro/region/organization/etimad/environment/test i got a blank page, what could be the issue. image

icarodemorais commented 3 years ago

I have the same problem.

Apigee running on v 4.50.00.00 on private cloud and apigee 3.2.1 being configured on my computer (windows 10).

I get the same result as you when running the configure command.

node_modules/edgemicro/cli/edgemicro private configure -o -e dev -u -p -r -m -v secure

the -v flag is related to the virtual host that I use.

baselalrefaie commented 3 years ago

the issue resolved when install version 3.1.5

borcsokj commented 2 years ago

I have the same problem with Apigee Edge v4.19.6.0 (private) and Apigee Microgateway 3.3.0.

keyurkarnik commented 2 years ago

Till we fix this, you can try this workaround. In Callout.xml located at edge/apiproxy/policies/Callout.xml set

<Property name="REGION_MAP">DN=edgemicroservices.apigee.net</Property>

as the second property. It should look like this

<Properties> <Property name="PROXY_NAME_PREFIX">edgemicro_</Property> <Property name="REGION_MAP">DN=edgemicroservices.apigee.net</Property> <Property name="org.noncps">true</Property> </Properties>