-
Notifications
You must be signed in to change notification settings - Fork 485
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
Cite Dataset - BibTeX - Firefox json error #6029
Comments
I was able to replicate this in demo (v. 4.15.1), but should also note, that when clicking the "Raw Data" tab in the Firefox browser (see screenshot above), you get the same results you see in Chrome and Safari (see below). Maybe there is a clue in the response headers:
|
This is why. Dataverse is asserting that BibTex is JSON. I assume this should be text/plain or something. Not sure. I'm going to guess that Heh, it looks like I added FIXME above it. 😄 I thought this bug looked familiar! |
while searching I found that other people fixed this by saving the file with ANSI encoding instead of UTF8. I hope this helps. |
Added |
#6029 fix response content type for FF
I encountered an error while clicking on BibTex under Cite Dataset through Firefox as below, It works fine on chrome or safari.
Error
Page: Dataset page "dataset.xhtml"
Action: Clicking button "Cite Dataset--->BibTeX"
Browser: Firefox 60.8.0esr (64-bit)
Dataverse: 4.10.1
Occurrence "Audience": Everyone
Error Message: "SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data"
The text was updated successfully, but these errors were encountered: