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?