menu

ZEIT

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

Channels
Team
Posts
Members
Info
Search

Unexpected JSON in logger

I often satisfy lambda requests with: but that function (defined in log.js), passes it to logResponse as seen below: which expects to parse it as a JSON object, and that therefore fails. please see attached picture below

thumbsup
1
message-simple
4

TypeError: Chaining cycle detected for promise #<Promise>

I'm getting this error with a very short stack trace: "at process.internalTickCallback (internal/process/next_tick.js:77:7) and is emanating out of Micro. the error pops up on the call to runMicroTasks() and happens with both micro and micro-dev. I would post a picture here but…

thumbsup
0
message-simple
2
Shondra McDonald·17d

hey yall

great place

thumbsup
1
message-simple
0

Unable to exit Micro running in the background

Only started using now dev as of recently and I love it. However my bad habit of spamming Ctrl+C to exit/close the server has resulted in Micro not closing correctly/safely and as such now when the server is "closed" I can still go to http://localhost:3000 and it will still be…

thumbsup
0
message-simple
2

Micro hangs up [SOLVED]

when I run npm start, I can run my lambda but at some point I want to terminate it with ^C... when I do I get this message: but micro never terminates. it just hangs I use to be able to hit ^c more times and it would (sort of) die but now that I'm running this under the VSCode…

thumbsup
0
message-simple
6

How to run Micro on Now V2

Ive written a small graphql service using micro (followed the example). It runs fine under micro-dev and micro on my localhost. It deploys and runs under Now V1 but doesn't run under Now V2. Im using the @now/node builder which reports a successful. But i get a 504: An error…

thumbsup
2
message-simple
19

Issues requiring firebase SDK

Sorry to blow up this community with a bunch of what seem to be lame questions, however, I can't understand what I'm doing wrong here. I'm trying to import the firebase-admin package like so: const admin = require("firebase-admin"); When my micro function gets a request, I'm…

thumbsup
3
message-simple
8

Requests being executed twice

I have a basic hello world example that I'm running locally on my machine and have a console log and it's being printed twice every time I make a request to my app. I notcied this when I was getting concurrency issues with my Google Firebase implementation. Is this expected or…

thumbsup
0
message-simple
2

Throwing errors and returning strings not returning status codes

I'm using micro in a now deployment and I have a super basic setup that will always throw an error using createError. When visiting the deployment, I'm met with a 502 saying my response didn't include a status code. The same error happens when I just return "Hello World". I…

thumbsup
0
message-simple
5

Getting the exact request string, unparsed

I was hoping someone may be able to help me get the request in the form it was sent, unparsed, as a string

thumbsup
0
message-simple
1