-
Notifications
You must be signed in to change notification settings - Fork 20
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
check up on missing content-type header #127
Comments
not fixed yet |
Is there a way to work around this? I am getting the error: I can't find a way to work around this error and it has really stopped my project from moving forward |
@legg0028 Can you show me the code you used that generated that error? |
@sckott any help is appreciated :) Try to ignore my basic coding skills haha
|
thx, but |
@sckott sorry I tried to trim the code for simplicity. The error occurs at the 'cr_works_', within the loop. The thing is, this code can run for hours before the error even occurs. That is, the 'while' loop can iterate many times before actually producing an error. Here is the unamended code, with 'title' defined.
|
first check for missing content-type header - and pass if not there also bump license year to 2017 update all man files for new roxyge2n, and require that new version
@legg0028 try again after reinstalling. I wasn't able to reproduce the error - I didn't run the entire thing, as I think I know what was wrong, so pushed a change that should fix it - let me know if you can verify that you don't get error any longer |
@sckott still testing the code. I have the The updated code I am using is as follows:
|
that appears to be a warning, not an error, which means code still proceeds. |
@sckott The code has been running for 24hours and it looks like the error has not occurred again. Issue should be fixed but I will let you know if anything does go wrong. Thanks for all your help |
@legg0028 did it work this time? |
@sckott I have not gotten an error but R crashes at about 50% (with no error returned). The .csv I am exporting is above 3 million lines long so maybe that has something to do with it. I will continue testing and get back to you. |
if that's the case you may want to write (append) to a file as the loop runs so even on fail you don't lose any data |
@sckott yea that is exactly what I am doing. Appending to the .csv every 5000 results and saving the cursor value (for deep paging) in a .txt file. That way if it crashes or whatever I just run it again and it picks up from where it left off |
Looks like the issue is sorted, ran the code through with no issue Thanks for all your help |
see CrossRef/rest-api-doc#172
The text was updated successfully, but these errors were encountered: