Import API 400 Bad Request no meaningful error message
SOLVE
I'm working on an integration that requires using Import API. I'm testing it with a small csv file (only contains two lines and around 10 columns) locally. I've tested with Postman with the csv file and request body, and the data was imported successfully.
Then I tried to do the same API call in the server, with the following lines:
I've confirmed the requestStr is the same as in Postman (in fact, I got the requestStr here first then pasted it in Postman), and the csv file is also the same. However, the request keeps returning a 400 bad request error. Could anyone provide insights here on any potential causes?
Import API 400 Bad Request no meaningful error message
SOLVE
Hi,
Have you installed the form-data module (npm install form-data) that you are using in your script? When attaching the file, specify the name and type. Try something like that:
Import API 400 Bad Request no meaningful error message
SOLVE
Hi,
Have you installed the form-data module (npm install form-data) that you are using in your script? When attaching the file, specify the name and type. Try something like that:
Have a lovely day and thanks so much in advance for your valuable contributions! ❤️ Bérangère
HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates. Learn More.