Closed killvung closed 4 years ago
Are you able to post the error that occurred or is that hidden? What values were being passed into the TwitterApi object? Can you confirm if the crash happens if you don't run the twitter API?
UPDATE: I suspected the issue is coming from Heroku itself. When I deployed the app with this api on fly.io it works. I am going to close the issue now. But yeah thanks for the library to save a bunch of work.
I wrote a simple application that would call
statuses/user_timeline.json
from the API'sget()
. This work on my local machine, but when I ran it on Heroku it returnsInternal Server Error
. This is my Profile for Heroku.web: deno run --allow-read --allow-net --cached-only index.ts --port=${PORT}
The same thing if I set--allow-net
with specific port, for example--allow-net=${PORT}
I am still investigation if it's related to the build pack or the API. https://github.com/chibat/heroku-buildpack-deno/blob/master/bin/compile The API for
get()
looks straightforward. https://github.com/stefanuros/deno_twitter_api/blob/master/twitterApi.ts#L59