opensrp / opensrp-server-web

OpenSRP Server Generic Web Application
Other
10 stars 21 forks source link

Error 500 on rest/settings/sync #490

Open moshthepitt opened 4 years ago

moshthepitt commented 4 years ago

Encountering an error 500 from the rest/settings/sync endpoint.

My expectation is that we should not encounter 500 level errors but instead receive back 4xx level responses notifying us of the error.

Request details

Request URL: https://reveal-stage.smartregister.org/opensrp/rest/settings/sync Request Method: POST

Request body is attached.

settings.json.zip

dubdabasoduba commented 4 years ago

@moshthepitt @githengi It might be something that's affecting Malawi(GIZ) too. Looking at it. now.

moshthepitt commented 4 years ago

I suspect that my example above is failing because the payload is large. But, alas, with the way this works on the web app we need to be able to handle large payloads.

dubdabasoduba commented 4 years ago

I don't think it's the large payload. From the little investigation I have done it affects the global settings. The setting payload you are sending is a global one since it's not tied to any teamId, locationId, providerId or team

dubdabasoduba commented 4 years ago

@moshthepitt When do you need this?

moshthepitt commented 4 years ago

ASAP but can wait mid next week

dubdabasoduba commented 4 years ago

Fixed in v2.2.23-SNAPSHOT and v2.1.46-SNAPSHOT

moshthepitt commented 4 years ago

Seems like it is still happening

dubdabasoduba commented 4 years ago

Identified problem

dubdabasoduba commented 4 years ago

I suspect that my example above is failing because the payload is large. But, alas, with the way this works on the web app we need to be able to handle large payloads.

@moshthepitt was right on this . The previous issue fixed wasn't the root cause in this case.