dynamicweb / DynamicWeb

Make feature requests for Dynamicweb in Issues section of this repository
https://doc.dynamicweb.dev/documentation/fundamentals/support/feature-requests.html
GNU General Public License v3.0
1 stars 0 forks source link

Improved log information in OData provider #107

Closed dwlhs closed 4 months ago

dwlhs commented 4 months ago

Hi :)

We were experiencing some issues retrieving data from an OData entity in Business Central. The log just indicated HttpStatusCode "Conflict":

image

Please include the http error number, in this case 409.

We were able to reproduce the error using Postman and received this response:

{ "error": { "code": "Internal_ServerError", "message": "The activity was deadlocked with another user. Please retry the activity. CorrelationId: 475d489e-dc25-4f56-90e8-0a2d110af502." } }

This was indeed very helpful, so we were able to trace the error in BC.

Please include this response information in the log as well, when the http status code is different from 200.

Br. Lars

DynamicRas commented 4 months ago

Hi,

We always try to make the most information present in the logs, I will add the task to the backlog to get this info in the log as well.

BR Rasmus Sanggaard

dwlhs commented 4 months ago

Great, thanks :)