apigeetool-node icon indicating copy to clipboard operation
apigeetool-node copied to clipboard

API errors not reported?

Open shaqq opened this issue 9 years ago • 3 comments

@theganyo or who else this concerns

It looks like the -V or --debug -D flags don't return errors from the API itself. Here's what I'm getting back:

Please report a bug if this causes problems.
Error: Error: Error uploading policy: 400
Error: Error uploading policy: 400
    at Request._callback (/usr/local/lib/node_modules/apigeetool/lib/commands/deployproxy.js:376:18)
    at Request.self.callback (/usr/local/lib/node_modules/apigeetool/node_modules/request/request.js:123:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/apigeetool/node_modules/request/request.js:1047:14)
    at emitOne (events.js:82:20)
    at Request.emit (events.js:169:7)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/apigeetool/node_modules/request/request.js:998:12)
    at emitNone (events.js:72:20)
    at IncomingMessage.emit (events.js:166:7)

Is there an option I'm missing here? At first glance, the error messages don't seem to be printed out the console:

https://github.com/apigee/apigeetool-node/blob/2198cff354e7d220dc839aff24db4b0205e28597/lib/commands/deployproxy.js#L369-L377

Though I haven't done a deep-dive into the code yet. Let me know how I can help. Thanks!

shaqq avatar Mar 29 '16 21:03 shaqq

Hi, Facing the same issue when trying to deploy an api proxy which has a Service Callout Policy. The error is not reported in the console and have to fiddle it to see what's wrong. Getting a 500 and not 400 though

Any update on this one ?

@theganyo

Mattzr avatar May 17 '16 07:05 Mattzr

I am getting the same error. does any one have solution?

surabhi-gupta-jll avatar Jan 12 '17 20:01 surabhi-gupta-jll

Same error when trying to upload a Service Callout Policy in a shared flow. Only happens when deploying using API, UI works fine!

khparhami avatar Dec 12 '22 23:12 khparhami