When trying to import the works from the crossref API by using the following command,
RAILS_ENV=production bundle exec rake db:works:import:crossref
I am getting the following response for a GET request for a URL. Although the URL fetches proper response when tried using curl or a web browser. What could be the issue and how it can be approached to be resolved. Any pointers is highly appreciated. Thanks in advance.
"error": "\n\n\n \n\n\n
Sinatra doesn’t know this ditty.
\n Try this:\n
get '/works' do\n \"Hello World\"\nend