-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with sample data #1
Comments
Hey Shendriksza, I just tested. I ran into the error you are seeing when there is no .env file used. Once that is set everything worked as expected. You can either set up an .env file and add your keys or manually set your keys. Note not all places where keys need to be added are on here. I will update. Example env |
Just updated the guide to call that out better, let me know if you have any issues. https://developers.moltin.com/guides/uploading-csv-data#add-your-site-credentials |
Hi gje4, thanks for the tip. I think I managed to get the keys setup but I'm still facing an issue. The custom fields are added successfully and I can see them appear on the Moltin dashboard under Flows (vendor, Tags and collections) yet everything else fails with the following error appearing multiple times:
and the catalog remains empty on my Motlin dashboard. |
Running the script with the sample data (apparel.csv) as provided on developers.moltin.com/guides/uploading-csv-data fails.
Command -
node app.js "/path/to/apparel.csv"
Output -
Read 17 objects from /path/to/apparel.csv file
TypeError: Cannot read property 'id' of undefined
at module.exports (/path/to/data/moltinobjects.js:25:31)
at processTicksAndRejections (internal/process/next_tick.js:81:5)
The text was updated successfully, but these errors were encountered: