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

the api is not working #1

Open
gwyneth-pena opened this issue Mar 25, 2022 · 20 comments
Open

the api is not working #1

gwyneth-pena opened this issue Mar 25, 2022 · 20 comments

Comments

@gwyneth-pena
Copy link

https://weatherdbi.herokuapp.com/data/weather/Manila
I am using your API but it is not working now:
image

@gwyneth-pena gwyneth-pena changed the title the app is not working the api is not working Mar 25, 2022
@zsanford89
Copy link

@gwyneth-pena It appears that they are switching from Heroku to a new hosting service provider. They have been trying to notify users of the issue.

@lmiskarik
Copy link

I have the same problem. Do you know how long it will take to fix it?

@gwyneth-pena
Copy link
Author

If it's urgent you can try other APIs, I used this for the meantime : https://www.weatherapi.com/

@lmiskarik
Copy link

https://www.weatherapi.com/ is not an option. I found this API for weather: https://openweathermap.org but it is a lot difficult to implement compared to weatherDB.

@DB-db-dron
Copy link
Owner

DB-db-dron commented Apr 12, 2022

The API is up and running...

But hosting provider will be changed soon due some issues that we faced in the last few months. There can be more downtime in this month.

In the past week, we received huge number of requests from a single source resulting in denial of service to our legitimate users. It continued for many days, so the API was shutdown for some time.

General Request: Please send minimum requests needed, without bombarding the API.

I am not closing the issue as the problem is not completely solved.

You can always mail me at [email protected] for queries.

@MasonMags
Copy link

Hello, the API is not working again

@DB-db-dron
Copy link
Owner

@MasonMags Can you please specify the time when the API was not working and your country( needed because of time zone differences). I have found two possible time period when the API may not be working yesterday. If you don't want to disclose your location here you can use the Talk to Us Section in our website to send a message with the specified information.

Link: Talk to Us Section

@DB-db-dron
Copy link
Owner

@MasonMags I have received your message. I was looking in the data that is collected during runtime using the reference provided by you. But unfortunately I have reached today's read-access-limit for the database very soon (because of limited resources).

Intelligence that I was able to gather:

  • The API may have been down for around 1 hour (if you received status-code=503 and the "Application Error screen") according to the time reference given by you.
  • Possible Causes
    • It can be a unintended/intended DOS attack. See my previous comment for more info: the api is not working #1 (comment)_
    • There can be flaw(bug/unhandled exception) in the source code.

Cannot confirm accurate cause before tomorrow.

@OrihuelaConde
Copy link

First, thank you for your API. I can teach my students how to consume an API and work with objects. Right now the API and Documentation aren't working (05:20 PM (GMT-3)).

@DB-db-dron
Copy link
Owner

@OrihuelaConde Working again after little more than 30 minutes. Inconvenience caused is regretted. thanks for informing.

@rogadev
Copy link

rogadev commented May 9, 2022

I agree - it is the perfect weather API for learning/teaching.

They are working to secure some different hosting and I believe that will fix the intermittent outages.

Another idea for you for teaching your students how APIs work on the back end is that you could create a metaweather proxy server using node and Express. It will teach your students about cross origin requests and teach them ways to work around those issues by implementing their own API proxy server.

But for just getting started with connecting a front end web app to an API, I think this is the best option available at present.

@david-sitsky david-sitsky mentioned this issue May 25, 2022
@david-sitsky
Copy link

Looks like it is down again.

@DB-db-dron
Copy link
Owner

DB-db-dron commented May 25, 2022

Inconvenience caused is deeply regretted.

The problem we are facing:

  • I have tried out three hostings - Digital Ocean, Linode, Heroku (currently hosted in heroku). But these platforms are not accepting my credit/debit cards. I checked two of the cards but neither of them are working.
  • I applied for a new card which again took almost 20 days to reach me. But then this card also does not work.
  • I have used these cards to make international transactions before, but don't know why it is not working. When I talked to my bank, they couldn't tell what the problem was.
  • So, now I have applied for a Paypal account. It will take a few days. Hopefully this time it will work.
  • As a result I cannot scale up the resources so that the API does not shutdown after 550 hours every month. Also I am unable to move to a new hosting.

The API will restart again on 1st June if I cannot fix this Hosting issue by the end of this month.

Visit here for more info: Heroku free dynos

Any suggestion or help regarding this long running problem is gratefully accepted.

@Crilum
Copy link

Crilum commented May 25, 2022

@DB-db-dron Thank you for putting so much time and effort (and money) into this. I appreciate your efforts! 😃

@Crilum
Copy link

Crilum commented May 25, 2022

@DB-db-dron I assume you've probably already read this, but just thought I'd put it here in case you haven't:

Accepted credit cards

Visa, MasterCard, American Express, Discover, and JCB credit cards are accepted. Debit cards are also accepted for Visa, MasterCard, or JCB. We do not accept any other cards.

You can use international credit cards for verification and payment with the exception of India-issued credit cards. See this Knowledge Base article for details.

If you run into any issues trying to add a credit card, please contact your financial institution for help.

@microcrit
Copy link

microcrit commented May 27, 2022

You may want to try render. It's pretty much a better alternative to Heroku, while maintaining the same/better plans for free.

There is also an enterprise version which I'm not completely sure about, but it probably offers better plans (more hours/month, more bandwidth/month)
Contact their sales for more information or to get the plan.

From their website, the enterprise version allows this:

Custom Service and Database Plans
Compliance and Data Processing Agreements
Custom billing
Migration services
Architecture Review
Uptime SLA
Premium & Enterprise Support

@Crilum
Copy link

Crilum commented May 27, 2022

From https://render.com/docs/free#free-web-services:

The free plan allows for 750 hours of running time per month across all free web services in your account.

@microcrit
Copy link

microcrit commented May 29, 2022

From https://render.com/docs/free#free-web-services:

The free plan allows for 750 hours of running time per month across all free web services in your account.

it may be upgraded with an enterprise plan, which is very cool :)

@Crilum
Copy link

Crilum commented May 30, 2022

From https://render.com/docs/free#free-web-services:

The free plan allows for 750 hours of running time per month across all free web services in your account.

it may be upgraded with an enterprise plan, which is very cool :)

Yeah, I was saying it had a lot of hours. 😄

@DB-db-dron
Copy link
Owner

I recently tried out Render. But as it does not support buildpacks like Heroku, the current instance of the API cannot be hosted there because it needs node.js and python both.

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

10 participants