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

Rate limit for Helium API calls #14

Open
philltran opened this issue Mar 30, 2021 · 4 comments · May be fixed by #16
Open

Rate limit for Helium API calls #14

philltran opened this issue Mar 30, 2021 · 4 comments · May be fixed by #16

Comments

@philltran
Copy link
Contributor

Do we need to add a rate limit for Helium API calls? Helium added a rate limit to the API on 3/29/2021 - https://discord.com/channels/404106811252408320/730418759298318346/826229168260775986

@philltran
Copy link
Contributor Author

I see there is a line to sleep the api call in utils.py

Perhaps my error is from the API being down again.

It would be nice though to find out the helium API rate limit and make sure the sleep time corresponds.

Thanks.

@jamiew
Copy link
Contributor

jamiew commented Nov 19, 2021 via email

@Primera
Copy link

Primera commented Nov 28, 2021

I had the same problem. It's indeed the user agent option. I fixed this in PHP using this code:

Add this before using file_get_contents (only once - no need to repeat/re-set)

$options  = array('http' => array('user_agent' => 'Helium Script'));
$context  = stream_context_create($options);

Modify your file_get_contest request:

file_get_contents($yourheliumapiurl); // old 

file_get_contents($yourheliumapiurl, false, $context); // new

@joshuajaharwood joshuajaharwood linked a pull request Jan 1, 2022 that will close this issue
@joshuajaharwood
Copy link

I've forked this repo to fix the HTTP issues and make various improvements since the dev's gone AWOL. I'll look in to PoCv11 support, refactoring, checkmarking during hotspot cache builds and usability improvements. If you have suggestions or improvements, let me know.

https://github.com/joshuajaharwood/helium_analysis_tools

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

Successfully merging a pull request may close this issue.

4 participants