Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

https://api.typings.org queries return a 500 error #103

Open
0nix opened this issue Mar 17, 2021 · 8 comments
Open

https://api.typings.org queries return a 500 error #103

0nix opened this issue Mar 17, 2021 · 8 comments

Comments

@0nix
Copy link

0nix commented Mar 17, 2021

I am no longer able to download type files from api.typings.org

https://api.typings.org/entries/dt/jasmine/tags/2.2.0%2B20160621224255

Returns 500 Internal Server Error

@blakeembrey
Copy link
Member

Nothing has been changed in years, and my initial take is that if it's down I won't be fixing this. It was initially set up on Heroku and they recent sunset the node.js instance it was built on, which may mean something has changed with the project. I've been maintaining it with my money, and unfortunately do not intend to donate my time right now.

@blakeembrey
Copy link
Member

See also #102. Typings has been deprecated on NPM for over 3 years now.

@blakeembrey
Copy link
Member

It looks like this is most likely caused by https://devcenter.heroku.com/changelog-items/2035, it looks like the API can no longer connect to the configured DB. I spent a little while trying to see if it was fixable without major work, but it doesn't appear to be.

@blakeembrey
Copy link
Member

blakeembrey commented Mar 17, 2021

Ok, found a workaround by going through https://github.com/brianc/node-postgres/blob/master/packages/pg-connection-string/index.js and finding a way to set SSL without needing to rebuild the app, since the app build is deprecated by Heroku. This is resolved for now. Please migrate away from typings so I can save time and money and shut down the server 🙏

@joexfactor
Copy link

Thanks so much @blakeembrey. Really appreciate your help. Will migrate to @types asap.

@ivanzhujunwei
Copy link

Thank you very much @blakeembrey it is resolved now, we have a couple of applications which are dependent on this, but we will try our best to migrate those applications one by one. Thanks again !

@blakeembrey
Copy link
Member

This may or may not help with migrating away from the API at least, but the way typings resolution was designed was that the registry just acted as a kind of symlink. You might be able to get away with replacing the registry entries with the location response from the registry instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants