[BUG] createDraftListing with type download returns error Internal Server Error 500 if you send shipping_profile_id as null #688
-
createDraftListing with type download returns error "Internal Server Error" 500 if you send shipping_profile_id as null In the documentation: https://developers.etsy.com/documentation/reference#operation/createDraftListing it says shipping_profile_id is of type: integer >= 1 || Nullable If you say in the documentation that Nullable is allowed I'm expecting the code to work if I send a request with shipping_profile_id set to Null. Or at least it should give me a nice error message but the error is "Internal Server Error" 500 which doesn't say nothing about the actual issue and I suspect it's actually crashing your code which would be kind of bad. Attached image with my listing data and response from createDraftListing This should be handled on the APIs side. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
@NickMihaiu91 We aren't able to duplicate this error. Can you send the full payload as text rather than an image? I need to try to duplicate your experience. That said, in the OpenAPI, if a field is marked as |
Beta Was this translation helpful? Give feedback.
-
Hi Nick, Have you tried sending your request without the shipping_profile_id attribute altogether? |
Beta Was this translation helpful? Give feedback.
@NickMihaiu91 We aren't able to duplicate this error. Can you send the full payload as text rather than an image? I need to try to duplicate your experience. That said, in the OpenAPI, if a field is marked as
nullable
that means you can leave it out. Passing it in with a null value should work but is not recommended.