question

tg avatar image
tg asked Javier Roque commented

Unusual response when creating item

We've noticed what seems to be an unusual response from Clover's servers when creating an item. This seems to have started earlier this week and it does not happen on every request. We receive a 200 response from the server and the body of the response is an empty json object {}. We've noticed this across 2 merchants so far, but does not seem to happen for all merchants.

11 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

sam avatar image sam commented ·

Could you post the snippet of the request body? And could you PM me the 2 merchant ids where you're seeing this?

0 Likes 0 ·
Javier Roque avatar image Javier Roque commented ·

This is occurring for all of our clients as well. The same API call will sometimes return a response like noted above (200 response with empty json) and sometimes will return the expected response (200 response with "real" JSON).

It is occurring across the board for multiple merchant IDs and multiple POST calls. Please advise. We did not see any documented changes to the API. We are getting pinged by many clients asking us what the issue is. Thank you.

0 Likes 0 ·
Javier Roque avatar image Javier Roque commented ·

Sample "bad" response (200):

{}

Sample "good" response (200) (with the same exact request):

{"id"=>"______", "name"=>"color", "itemGroup"=>{"id"=>"_____"}}
0 Likes 0 ·
sam avatar image sam commented ·

@Sku IQ Are you seeing this limited to createItem or other endpoints as well?

0 Likes 0 ·
Javier Roque avatar image Javier Roque commented ·

We're seeing this on at least the following:

  • POST, /attributes
  • POST, /item_groups
  • POST, /items/__
0 Likes 0 ·
Show more comments
sam avatar image
sam Deactivated answered Javier Roque commented

Our engineers have identified and actively working on the solution. We expect to have the fix rolled out early next week. Thank you for your patience.

1 comment
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Javier Roque avatar image Javier Roque commented ·

Thank you for the update. Please let us know when the fix is in place. We have quite a number of clients for which this is causing issues.

0 Likes 0 ·
sam avatar image
sam Deactivated answered

This issue has been fixed. Thank you for everyone's patience.

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community