-
Notifications
You must be signed in to change notification settings - Fork 4
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
HTTP 500 Error with DOI #11
Comments
Thanks for reporting. It should be the right one according to the documentation: |
@hellemo I'm still experiencing this issue, is it the same on your end? |
I still have the same problem. I checked with opencitations, and they will look into it. They say it only happens occationally, but for me it is very consistent since you raised the issue. |
shortcodes
|
yeah, it seems to be permanent for DOI. For twitter it is intermittent, but frequent. |
do they have an issue open for it? |
This looks like a relevant issue: |
this is a real bummer... so much that now depends on ShortCodes... how can I help fix this? |
Maybe i misunderstand the issue, but can I suggest rolling back the HTTP version bump for ShortCodes, d1a4991, until opencitations/api#7 is fixed? |
This is indeed unfortunate. I've tried
I don't think this was the issue but you could test it out by creating a Julia project environment: julia>]
(@v1.8) pkg> activate --temp
(@v1.8) pkg> add ShortCodes@0.3.3 |
thanks for the info, I will try it with a token |
bit of a newb question, but any advice as to how to insert a token to ShortCodes API calls? |
As far as I can see in doi.jl there are no functions that support receiving the header (i.e token) keyword for Line 51 in b0e8bf2
Line 63 in b0e8bf2
Line 72 in b0e8bf2
You could also just fork and modify the functions to take a keyword instead. As a follow-up I tried out my suggestion for using |
This points to a new API going forward. Do you see any issues with moving ShortCodes to this? |
Thanks, moving to the new API should be doable, initial work here: #12 if anyone wants to try it out. |
I think this should reopen as papers with no citations error at present: using ShortCodes Failed to show value: BoundsError: attempt to access 0-element JSON3.Array{Union{}, Vector{UInt8}, Vector{UInt64}} at index [1] throw_boundserror(::JSON3.Array{Union{}, Vector{UInt8}, Vector{UInt64}}, ::Tuple{Int64})@abstractarray.jl:703 DOI("10.1103/PhysRevA.107.010101") Failed to show value: BoundsError: attempt to access 0-element JSON3.Array{Union{}, Vector{UInt8}, Vector{UInt64}} at index [1] throw_boundserror(::JSON3.Array{Union{}, Vector{UInt8}, Vector{UInt64}}, ::Tuple{Int64})@abstractarray.jl:703 |
I'm noticing issues since the bump in HTTP version in v0.3.3 commit d1a4991. The response times out due to:
However, I'm suspecting its not HTTP.jl but changes to the opencitations REST API ? Currently
ShortCodes.jl/src/doi.jl
Line 52 in b0e8bf2
is using
metadata
in the link, but it looks like it may need to bereferences
, I'm not sure. Thanks for the useful package!The text was updated successfully, but these errors were encountered: