-
SummaryI have a serverless function written in Go (GitHub Link) that converts well-formatted DOT syntax into an image. Bad syntax returns a 400 error. Locally, using What do I need to do to make the function behave as it does locally? Any ideas as to what's causing this strange behavior? Additional informationWhen looking at the response headers, If you go to this minimally reproducible example, submitting the following well-formatted syntax: graph test { a -- b } should return the following image: On the other hand, the following bad syntax: graph test { a -- } should return the following error message:
And the following bad syntax: graph test { a - b } should return the following error message:
After trying one of the bad syntaxes, the good syntax no longer returns a 200 OK, but rather always returns the error message of the most recent error. Switching between the two bad syntaxes behaves correctly. Refreshing the web page in the example does not solve the problem. The function behaves incorrectly for around 5-10 minutes, after which I assume the server enters an idle state and can properly "restart". Here is the GitHub code for the minimal example. vercel.go.behavior2.mp4Example |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This seems to be an issue related to the library I'm using. |
Beta Was this translation helpful? Give feedback.
This seems to be an issue related to the library I'm using.
Still a bit strange that this doesn't appear locally with
vercel dev
, though.