Hello EE,
I have a problem with my APIs.
the API site opens up well, Its with Swagger UI and I see everything. when I select my GET customer (by the way SQL table is empty) and I click "Try it out" and "Execute"
I see error this error below. Those is just mean there is no customer in my table or its another problem ?
by the way, all the apis (get, put, post etc) were all created with ASP.NET Core API.
500Undocumented | Error: Internal Server Error |
content-length: 0 date: Thu,17 Feb 2022 19:33:42 GMT server: Microsoft-IIS/10.0 x-powered-by: ASP.NET
it didnt work after adding IP but it did work after putting YES to "Allow Azure services and resources to access this server"It should have. Basically, Azure SQL does not allow (not even the Admins to access the DB initially. Basically, they want user to configure security on need to basis rather than allowing blanket access.
im still learning azure but, was it normal to put Yes to that ?Absolutely Yes.
- inside the GET code, add more debugging (logging to file for instance, see if the database query returned an error, or just OK but no data).
- just fill the database with a handful of customer.
Either way, try to gather more info.