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

https://www.semanticscholar.org/product/api#api-key-form", "code": "429" #84

Open
gao106 opened this issue Aug 30, 2024 · 22 comments
Open

Comments

@gao106
Copy link

gao106 commented Aug 30, 2024

when i try to run this command:python launch_scientist.py --model "deepseek-coder-v2-0724" --experiment nanoGPT --num-ideas 1**

Response Status Code: 429
Response Content: {"message": "Too Many Requests. Please wait and try again or apply for a key for higher rate limits. https://www.semanticscholar.org/product/api#api-key-form", "code": "429"}
Backing off 6.5 seconds after 4 tries calling function search_for_papers at 04:14:52
Response Status Code: 429
Response Content: {"message": "Too Many Requests. Please wait and try again or apply for a key for higher rate limits. https://www.semanticscholar.org/product/api#api-key-form", "code": "429"}
Backing off 12.0 seconds after 5 tries calling function search_for_papers at 04:14:59
Response Status Code: 429
Response Content: {"message": "Too Many Requests. Please wait and try again or apply for a key for higher rate limits. https://www.semanticscholar.org/product/api#api-key-form", "code": "429"}
Backing off 15.8 seconds after 6 tries calling function search_for_papers at 04:15:11
Response Status Code: 429

what should i do?

@conglu1997
Copy link
Collaborator

Please see: #78 Try see if the API works at all, and you have no firewall.

@gao106
Copy link
Author

gao106 commented Sep 1, 2024

It seems the issue isn't related to the firewall. It appears that the program is accessing https://www.semanticscholar.org/product/api#api-key-form too frequently. Do you know where to change this address or adjust the strategy?

@conglu1997
Copy link
Collaborator

conglu1997 commented Sep 1, 2024

Requesting an API key would be the best strategy, alternatively one could consider other open scholarly archives such as DBLP! I believe Google Scholar can be challenging to access properly and can often block access.

@gao106
Copy link
Author

gao106 commented Sep 1, 2024

Where can I make changes to switch to DBLP? Please let me know.

@Isaadahmed2
Copy link

I also need help for switching DBLP

@conglu1997
Copy link
Collaborator

conglu1997 commented Sep 1, 2024

The code for semantic scholar is here:

def search_for_papers(query, result_limit=10) -> Union[None, List[Dict]]:
. I should say, the easiest option is to just request a key.

@gao106
Copy link
Author

gao106 commented Sep 1, 2024

Yeah,i konw .but it very hard to get a key.

@jli113
Copy link

jli113 commented Sep 2, 2024

I'm using Ubuntu 24.4, I run export S2_API_KEY="MY KEY" in the terminal, opened another terminal to run launch_scientist.py.
Still got 429.

@conglu1997
Copy link
Collaborator

export doesn't last between different terminal sessions.

@Isaadahmed2
Copy link

@jli113 how do you get a key?

@conglu1997
Copy link
Collaborator

@micelvrice
Copy link

Has anyone been successful in their application? how long does it take, I submitted my application 3 days ago and still no response

https://www.semanticscholar.org/product/api#api-key-form

@Isaadahmed2
Copy link

@micelvrice same I have submitted the request like 3 days ago

@conglu1997
Copy link
Collaborator

Perhaps 1-2 weeks. Feel free to run without novelty checking or citations in the writeup in the meantime! Just comment out the necessary lines.

@Isaadahmed2
Copy link

@conglu1997 I have tried that but i am getting error ../../data path for train.bin is not there.

@conglu1997
Copy link
Collaborator

Have you run the prepare steps?

@Isaadahmed2
Copy link

@conglu1997 yes I have done all of them and the file is present there.

@conglu1997
Copy link
Collaborator

Can you try pull the most recent version of the code? We recently fixed a related issue.

@jobschang7
Copy link

Can you try pull the most recent version of the code? We recently fixed a related issue.

i tried the most recent version of the code. same problem.
image

@gao106
Copy link
Author

gao106 commented Sep 14, 2024

@jobschang7 Requesting an API key would be the best strategy, HAHAHAHAHAH

@BradKML
Copy link

BradKML commented Dec 27, 2024

@gao106 registration can be a bit of a pain sometimes, if only there are tutorials that are more straightforward

@conglu1997
Copy link
Collaborator

Please see #135

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants