Menu
Feedback
Start here

Known issues

Known issues
Giftcard Hub call receives 500 error
Payments
ID: 1286257
Backlog
Published on9/3/2025
Last updated on9/3/2025
1 min read

Summary

When the Giftcard Hub receives any error, it ends up returning a 500 error to the user. This occurs because errors are handled in the Giftcard System code.

This behavior can happen across different requests, regardless of the HTTP verb. The root cause is that when the Giftcard System does not find content in the response, which is common in 4xx and 5xx responses, it clears the content from memory. Later, when the code tries to access this element again, it has already been disposed of, resulting in the following error message:

Cannot access a disposed object. Object name: 'System.Net.Http.StreamContent'.

With this, the user does not have clear information about what happened, which makes troubleshooting much more difficult.

Simulation

It is not possible to simulate this behavior.

Workaround

None.

Contributors
1
Photo of the contributor
+ 1 contributors
Was this helpful?
Yes
No
Suggest Edits (GitHub)
Contributors
1
Photo of the contributor
+ 1 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX Community
Join our community
Request VTEX support
For personalized assistance, contact our experts
Open a support ticket
GitHubDeveloper PortalCommunityFeedback