turnage / graw

Golang Reddit API Wrapper
MIT License
288 stars 49 forks source link

500 status code when running the example #75

Closed rakoo closed 4 years ago

rakoo commented 4 years ago

Hello,

I'm trying to run the example from the book, I have my own credentials, but when I run it I have a 500 error:

Failed to fetch /r/golang:  bad response code: 500

I don't even know where to start investigation, what caused it, what is the request, etc... Any idea how I can start digging into it ?

turnage commented 4 years ago

That code is coming from Reddit.

The requests are sent by this struct: https://github.com/turnage/graw/blob/master/reddit/client.go

Unless the tutorial has started failing for everyone, I suspect it has to do with the Reddit account.

rakoo commented 4 years ago

Sorry for troubling you. Reddit didn't recognize a character I was using in my app name (ĝ).

Thanks for the library it's really nice !

turnage commented 4 years ago

No worries! Vi devus peti Reddit efektivigi Esperanton.

rakoo commented 4 years ago

;)