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

500 Internal Server Error (RestClient::InternalServerError) #2

Open
popey opened this issue Jul 17, 2023 · 3 comments
Open

500 Internal Server Error (RestClient::InternalServerError) #2

popey opened this issue Jul 17, 2023 · 3 comments

Comments

@popey
Copy link
Contributor

popey commented Jul 17, 2023

Good looking project! Thanks for making it.

I'm using Ubuntu 23.04, ruby 3.1, but get the above error after pasting in my API keys.

Your keys have now been written to the configuration file (.imdb.conf). You can edit this file manually if needed.

Press 'y' to start imdb-term Loading IMDB data... (this may take som time, go get some coffee)
/var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:249:in `exception_with_response': 500 Internal Server Error (RestClient::InternalServerError)
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/abstract_response.rb:129:in `return!'
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:836:in `process_result'
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:743:in `block in transmit'
        from /usr/lib/ruby/3.1.0/net/http.rb:966:in `start'
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:727:in `transmit'
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:163:in `execute'
        from /var/lib/gems/3.1.0/gems/rest-client-2.1.0/lib/restclient/request.rb:63:in `execute'
        from /var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:412:in `getimdb'
        from /var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:424:in `loadimdb'
        from /var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:726:in `<top (required)>'
        from /usr/local/bin/imdb:25:in `load'
        from /usr/local/bin/imdb:25:in `<main>'

On second run, the load appeared to be working, getting a coffee, but that failed again..

Loading IMDB data... (this may take som time, go get some coffee)
/var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:664:in `w_b': undefined method `clr' for nil:NilClass (NoMethodError)

  @w_b.clr
      ^^^^
        from /var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:538:in `saveimdb'
        from /var/lib/gems/3.1.0/gems/imdb-terminal-0.7.4/bin/imdb:727:in `<top (required)>'
        from /usr/local/bin/imdb:25:in `load'
        from /usr/local/bin/imdb:25:in `<main>'

On further runs, I either get the above "undefined method" error or 502 or 400 errors in the HTTP requests. I wonder if the code needs better error handling or repeat after a delay when performing these requests.

@isene
Copy link
Owner

isene commented Jul 17, 2023

Yes to the "better error handling" :)

But, could you paste your .imdb.conf here (removing the keys inside the quotation marks")?

@popey
Copy link
Contributor Author

popey commented Jul 17, 2023

Here you go.

@imdbkey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
@omdbkey = 'xxxxxxxx'
@streamkey = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

@popey
Copy link
Contributor Author

popey commented Jul 24, 2023

Thought I'd give it a go on my Mac. Also fails.

alan@Alans-MacBook-Air ~ % imdb
Loading IMDB data... (this may take som time, go get some coffee)
/Library/Ruby/Gems/2.6.0/gems/imdb-terminal-0.7.4/bin/imdb:664:in `w_b': undefined method `clr' for nil:NilClass (NoMethodError)
	from /Library/Ruby/Gems/2.6.0/gems/imdb-terminal-0.7.4/bin/imdb:538:in `saveimdb'
	from /Library/Ruby/Gems/2.6.0/gems/imdb-terminal-0.7.4/bin/imdb:727:in `<top (required)>'
	from /usr/local/bin/imdb:23:in `load'
	from /usr/local/bin/imdb:23:in `<main>'

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

2 participants