Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

ZEIT

Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.

ZEIT / Micro

Where are the error logs on zeit?

Where are the error logs on zeit?

ZEIT / Micro · February 3, 2019 at 7:46am

I tried https://github.com/zeit/micro/tree/master/examples/external-api-call locally, changing the api.example.com url to a working url and it is working. When I go on localhost:3000, the script return the correct result. If I deploy with now, then it looks like successful but when I go on the generated now url, the generated site times out (the site can't be reached).

What am I missing? Where are the zeit error log so I can understand what is happening?


February 3, 2019 at 8:15am

There are two ways I know of to see the logs.

  1. Go to your now project through the dashboard (https://zeit.co/dashboard) or projects (https://zeit.co/dashboard/projects) and click the linked deployment that leads you to the logs of the deployment.
  2. Run the now logs command if you are using the CLI - now logs projectname-randomhash.now.sh
Edited
  • reply
  • like

February 3, 2019 at 1:00pm

Thanks Viktor. It helped me to debug. Basically the micro example I mentioned can not work with just "now" because it needs some res.end() and res.send() or other.

like-fill
1
  • reply
  • like

February 3, 2019 at 2:50pm

February 4, 2019 at 12:13am

Thanks Paulo

  • reply
  • like