Skip to content
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

Error (200, SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data): Error creating entry #36

Closed
danstowell opened this issue Jan 20, 2023 · 6 comments

Comments

@danstowell
Copy link

Hi. I'm trying to create a new dataset on AcademicTorrents. I fill in all the metadata on https://academictorrents.com/upload.php and submit, and I can't get any further, because I get this error appearing next to the submit button:

Error (200, SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data): Error creating entry

Now, I haven't added any JSON, so as the user there's no way for me to diagnose this. I tried taking all the unusual characters out of my metadata, but that didn't fix it. I'm on Firefox 108.0.2 on Ubuntu.

It seems like this must be a programming error since it shouldn't (presumably) be possible to create malformed JSON just by filling in the form. But if it's user error, please do guide me.

image

@ieee8023
Copy link
Member

Sorry you are experiencing this issue. I added more logging around a part of the code this could be happening. Can you upload the torrent again?

You can leave all the metadata empty and just mark the torrent as "Not Listed" and fill it in later.

You can also email the torrent to contact@academictorrents.com and I can look into it.

@danstowell
Copy link
Author

Thanks for looking into it - I just tried again (reloaded the page, pasted my metadata back in too) -- this time, I got

Error (400, Bad Request): {"msg","Error creating entry"}

@ieee8023
Copy link
Member

Ok I was able to log more that time and I am still confused. Can you send over the torrent file?

@ieee8023
Copy link
Member

Scratch that. I was able to complete the upload of that file and assign it to your account. I think the issue is with how firefox on linux is preparing the request. I will continue to look into it.

@danstowell
Copy link
Author

OK thanks. FYI: I also get the same (original) syntax error when I try to edit the item and add the metadata.

@ieee8023
Copy link
Member

Ok, I figured it out. I found 4 unicode characters (\u00a0) in the abstract that where not being handled correctly. We should have had a better error for that and we will work on it going forward. I edited the entry so all the metadata is there now.

@ieee8023 ieee8023 closed this as completed Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants