bobbymarko / powderlines-api

API for accessing SNOTEL stations. Useful for finding current snow levels across a state.
http://powderlin.es/api.html
Apache License 2.0
16 stars 4 forks source link

Response Code 503 #2

Open sethhill28 opened 1 year ago

sethhill28 commented 1 year ago

I'm receiving a response code of 503 from an API call that was working last week on the closest_stations and station endpoints. Is the API currently down for maintenance?

bobbymarko commented 1 year ago

The service was running on the Heroku free tier which they deprecated this week. I don’t have time to migrate the project elsewhere so unfortunately it’ll stay down unless someone is willing to help migrate it elsewhere. On Nov 30, 2022, at 8:27 AM, Seth Hill @.***> wrote: I'm receiving a response code of 503 from an API call that was working last week on the closest_stations and station endpoints. Is the API currently down for maintenance?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

marcrleonard commented 1 year ago

I had a feeling this was due to the depreciated free tier 😢 Do you have a deployment guide to configure/run the environment locally? Or a docker compose which would do this?

bobbymarko commented 1 year ago

I wonder how many services went down after the deprecation across the internet?It’s a Ruby Sinatra app so it’s pretty easy to get running. Use ‘gem install bundler’ and the ‘bundle install’ to install the dependencies. Then run ‘ruby snotel.rb’ to start the app. On Dec 6, 2022, at 8:41 PM, Marc Leonard @.***> wrote: I had a feeling this was due to the depreciated free tier 😢 Do you have a deployment guide to configure/run the environment locally? Or a docker compose which would do this?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>

ctvidic commented 1 year ago

I've already ran across a number of services that have gone down because of the Heroku update 🙃. If interested in deploying to Heroku I was able to get it deployed for personal use, but only by including gem 'puma' in the Gemfile, updating the gems, and changing the Rack::Timeout in config.ru to use Rack::Timeout, wait_timeout: 29 instead of the previous set up on lines(5-6).