Can't access github api through reqwest

here's the demo link

Can you access the link with your browser?

yes, I've tried pass cookie, but still not works

Does your code give the same "Name not resolved" error on your local machine? Because on the Playground, it may so happen that outbound TCP or UDP requests are blocked.

As per Rust Playground :

There is no network connection available during compilation or execution of user-submitted code.

So yeah, that code won't work on the playground for obvious reasons.
In general if you post about an issue always include the error message you are facing and details about where and how you run it. That way people will be able to help you much quicker.


OK, I will keep that in mind. Thanks!

local works, my bad

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.