question

GeorgGraupner-9002 avatar image
0 Votes"
GeorgGraupner-9002 asked BobJohnson-6874 edited

InternalServerError on REST API

Dear all,

Im trying to use a HTTP POST for resuming and stoping my Azure SQL DB.

Authentication seems to work, but I always get an Error:

"{"error":
{"code":"InternalServerError",
"message":"Encountered internal server error. Diagnostic information:
timestamp '20210426T163441Z',
subscription id 'xxxxxxxxxxxxxxxxxxxxx,
tracking id 'xxxxxxxxxxxxxxxxxxxxxx',
request correlation id 'xxxxxxxxxxxxxxxxxx'.
"}}"

HTTP header and HTTP resuest seems okay:

msg.url = "https://management.azure.com/subscriptions/xxxxxxxxxxxxxx/resourceGroups/xxxxxx/providers/Microsoft.Sql/servers/xxxxxxx/databases/History/resume?api-version=2020-11-01-preview";
msg.headers = {};
//msg.headers['Host'] = 'management.azure.com';
msg.headers['Content-Type'] = 'application/json';
msg.headers['Authorization'] = 'Bearer ' + 'xxxxxxxxxxxxxx';
return msg;


Any Idea?

not-supported
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers