Menu
Feedback
Start here
Tutorials
Developer portal

Known Issues
Support Rules
Troubleshooting

Frequently Asked Questions
Announcements
Known issues
Insert SKU File API doesnt accept URLs from servers that require 'User Agents'
Insert SKU File API doesnt accept URLs from servers that require 'User Agents'
ID: 1069222
Backlog
Published on 7/22/2024
Last update on 7/22/2024

Summary

A user-agent is a string of text that a web browser or other client sends to a web server in an HTTP request header to identify itself. This string contains information about the browser type, operating system, and sometimes additional details like the browser version and the rendering engine used.

This is often requested as a security measure by servers, such as ones that host images, that can be passed via URL in the request body of the insert SKU file API.

This kind of authentication, however, is not currently supported by the VTEX APIs.

Simulation

1 - Using either the Create or Update (write methods) SKU file API passing down an URL that has server-side user agent requirement to fetch data https://developers.vtex.com/docs/api-reference/catalog-api#post-/api/catalog/pvt/stockkeepingunit/-skuId-/file

2 - A 40x type response will be shown, either a generic 400 or a more specific 403 depending on the type of response implemented.

Workaround

Either opt for the file upload va spreadsheet, form-data (using the APIs) or disable the user-agent requirements on the server-side.

Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
Contributors
2
Photo of the contributor
Photo of the contributor
+ 2 contributors
On this page
Still got questions?
Ask the community
Find solutions and share ideas in the VTEX community.
Join our community
Request support from VTEX
For personalized assistance, contact our experts.
Open a support ticket
GithubDeveloper portalCommunityFeedback