cristiano

Joined

3,350 Experience
33 Lessons Completed
0 Questions Solved

Activity

I wasn't able to see the error where the users database table does not exist. I'm not sure if this is because I am on free tier but only the requests show on the logs and not the error itself:



2021-02-07T18:34:24.162677+00:00 heroku[router]: at=info method=GET path="/sign_up" host=rails-scheduled-tweets.herokuapp.com request_id=1d0bdd35-fa54-42ca-acc6-88b2a061905d fwd="85.240.66.32" dyno=web.1 connect=0ms service=47ms status=500 bytes=1827 protocol=https

2021-02-07T18:34:26.270777+00:00 heroku[router]: at=info method=GET path="/" host=rails-scheduled-tweets.herokuapp.com request_id=4a51fb0c-9e8d-42a5-8e2c-f8dd9ef6da4d fwd="85.240.66.32" dyno=web.1 connect=1ms service=8ms status=200 bytes=3685 protocol=https

2021-02-07T18:34:26.486016+00:00 heroku[router]: at=info method=GET path="/packs/js/application-2d24cb02e79dc1ee88b7.js" host=rails-scheduled-tweets.herokuapp.com request_id=f33fa757-c482-4423-a582-cd49534d7625 fwd="85.240.66.32" dyno=web.1 connect=0ms service=1ms status=304 bytes=48 protocol=https

2021-02-07T18:34:26.498205+00:00 heroku[router]: at=info method=GET path="/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css" host=rails-scheduled-tweets.herokuapp.com request_id=76391c84-82c2-43b1-a1c1-53f3111bef19 fwd="85.240.66.32" dyno=web.1 connect=1ms service=1ms status=304 bytes=48 protocol=https

2021-02-07T18:34:26.646311+00:00 heroku[router]: at=info method=GET path="/assets/application-04024382391bb910584145d8113cf35ef376b55d125bb4516cebeb14ce788597.css" host=rails-scheduled-tweets.herokuapp.com request_id=01a9a45f-b89c-4ef4-8361-fc89a27f2fb6 fwd="85.240.66.32" dyno=web.1 connect=0ms service=1ms status=200 bytes=195 protocol=https

2021-02-07T18:34:26.811517+00:00 heroku[router]: at=info method=GET path="/packs/js/application-2d24cb02e79dc1ee88b7.js" host=rails-scheduled-tweets.herokuapp.com request_id=249a55a6-b3fa-4868-b5f5-96d8ecf7b18f fwd="85.240.66.32" dyno=web.1 connect=1ms service=2ms status=200 bytes=15905 protocol=https

2021-02-07T18:35:17.897899+00:00 heroku[router]: at=info method=GET path="/sign_up" host=rails-scheduled-tweets.herokuapp.com request_id=fd19d46c-e12e-4ef3-8821-0505ffa219a8 fwd="85.240.66.32" dyno=web.1 connect=1ms service=7ms status=500 bytes=1827 protocol=https

2021-02-07T18:36:41.193178+00:00 heroku[router]: at=info method=GET path="/sign_up" host=rails-scheduled-tweets.herokuapp.com request_id=aee05fff-f7c9-4bf4-9ced-398de28e3bc6 fwd="85.240.66.32" dyno=web.1 connect=1ms service=9ms status=500 bytes=1827 protocol=https

2021-02-07T18:40:07.355959+00:00 heroku[router]: at=info method=GET path="/sign_up" host=rails-scheduled-tweets.herokuapp.com request_id=a1744b84-680b-49e1-b7b8-49063060392b fwd="85.240.66.32" dyno=web.1 connect=0ms service=13ms status=500 bytes=1827 protocol=https

2021-02-07T18:40:07.668976+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=rails-scheduled-tweets.herokuapp.com request_id=518a43fa-eb33-40b0-8ffc-8e8d8234a31c fwd="85.240.66.32" dyno=web.1 connect=1ms service=2ms status=200 bytes=143 protocol=https

The issue for me was that I created an app that was using the v2 of the Twitter API and this tutorial makes use of v1.1, I have answered a question on StackOverflow with a more detailed answer: https://stackoverflow.com/a/66060794/4032810

Good luck everyone!

There's a question from someone who I believe following this course getting the same error:
https://stackoverflow.com/questions/66009147/no-route-matches-get-auth-twitter-omnia

I keep getting the OAuth::Unauthorized error, not sure what is going on here but it's keeping me from progressing sadly.

        self.token_request(http_method, uri.path, token, request_options, arguments)
      when (400..499)
        raise OAuth::Unauthorized, response
      else
        response.error!
      end

I think a little introduction to this topic is something that was missing from Rails Beginner Courses, really good idea to add that in Chris! I have written an introduction to the REST architecture in case anyone is looking for further resources: https://www.csalmeida.com/log/introduction-to-the-rest-architecture/

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.