service-fabric-cli icon indicating copy to clipboard operation
service-fabric-cli copied to clipboard

`application provision` returns not helpful 500 on client errors

Open samedder opened this issue 8 years ago • 5 comments

If an application package is malformed or invalid, the application provision API will fail with a 500 response code. This is indicative of a server side error, rather than client and returns no meaningful information about what could be wrong with the application package.

A more detailed response would help reduce debugging times for provision failures.

samedder avatar Sep 18 '17 22:09 samedder

Indeed, I am getting that error but I do believe my application package is fine (maybe no?!) But no way to know it....

JoseFMP avatar Nov 24 '17 08:11 JoseFMP

A workaround may be to print server response body to stderr (as i do locally after tuning msrest lib), usually response is descriptive enough. But this issue really needs attention, sfctl is hard to work with.

kkorsakov avatar Nov 24 '17 08:11 kkorsakov

@kkorsakov the problem is that the server itself only returns 500 and no message.

Fortunately had access to the server and could see in the logs what was wrong...

But really inconvenient that sfctl will not get an error message from the server that would be just displayed... would have saved me and many other people a bunch of hours.

JoseFMP avatar Nov 24 '17 09:11 JoseFMP

SF server always (in my case) returns body along with 500 code. Body contains description in JSON format, but sfctl doesn't print in anywhere. Could you give dump of request/response?

kkorsakov avatar Nov 24 '17 10:11 kkorsakov

Nothing in the body, otherwise I won't be texting here :1234:

JoseFMP avatar Feb 05 '18 06:02 JoseFMP