Trying to deploy or even undeploy a proxy we are getting the following error:
Invalid status code from backend deployment service (Token has expired or not active yet 😞 {1}.
Any ideas how I might resolve this appreciated.
Ta in advance,
Michael McDowell
Hi @michaelmcdowell,
Hi - I work with Michael and here's some more info:
We are using Apigee Edge / Cloud and are trying to deploy a component using apigeetool, which initiates API calls to Apigee. The failure seems to occur when apigeetool POSTs to a URL of this form:
https /api.enterprise.apigee.com /v1 /o /myorg /e /dev /apis /myapi /revisions /52 /deployments
Deployment has been working for some time and this particular component was last deployed a couple of weeks ago.
See line 700 of the below apigeetool source file:
https://github.com/apigee/apigeetool-node/blob/master/lib/commands/deployproxy.js
ERROR EXPERIENCED BY APIGEETOOL
Deployment on dev result: "{\n \"code\" : \"hosted.target.UnexpectedTurboStatusCode\",\n \"message\" : \"Invalid status code from backend deployment service (403): Token has expired or not active yet\\n\"
Error: Invalid status code from backend deployment service (403): Token has expired or not active yet
at Request._callback
(C:\Program Files\nodejs\node_modules\apigeetool\lib\commands\
deployproxy.js:737:12)
at Request.self.callback
(C:\Program Files\nodejs\node_modules\apigeetool\node_modules\
request\request.js:188:22)
IS IT RELATED TO SSL WARNINGS?
I notice that this URL is not valid (I can't paste it in this page) and gives me a browser warning: 'Your connection to this site is insecure' (in Chrome or Firefox):
https /api.enterprise.apigee.com /v1
Whereas this URL seems to have a trusted SSL certificate and I can paste it here:
Guys, I'll put my money on it being the Hosted Function resource the Proxy is also trying to deploy that is the underlying cause. I suspect it broke which has in turn broke the Proxy and its ability to increment/decrement/deploy.
Here's the error we are seeing:
Deployment on dev result: "{\n \"code\" : \"hosted.target.UnexpectedTurboStatusCode\",\n \"message\" : \"Invalid status code from backend deployment service (403): Token has expired or not active yet\\n\",\n \"contexts\" : [ ]\n}" Error: Invalid status code from backend deployment service (403): Token has expired or not active yet Error: Invalid status code from backend deployment service (403): Token has expired or not active yet at Request._callback (/usr/lib/node_modules/apigeetool/lib/commands/deployproxy.js:737:12) at Request.self.callback (/usr/lib/node_modules/apigeetool/node_modules/request/request.js:188:22) at emitTwo (events.js:126:13) at Request.emit (events.js:214:7) at Request.<anonymous> (/usr/lib/node_modules/apigeetool/node_modules/request/request.js:1171:10) at emitOne (events.js:116:13) at Request.emit (events.js:211:7) at IncomingMessage.<anonymous> (/usr/lib/node_modules/apigeetool/node_modules/request/request.js:1091:12) at Object.onceWrapper (events.js:313:30) at emitNone (events.js:111:20) Process exited with code 6
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |