#compiler api doesn't work in deployment mode
30 messages · Page 1 of 1 (latest)
Try to provide all relevant information in your post concisely. This includes:
- Include all relevant information in your post: https://stackoverflow.com/help/how-to-ask
- Provide any steps or things you may have already attempted to try to solve the problem at hand
I've been working on an API in Go that compiles and runs user-provided code. It works perfectly fine in development mode, but when I deployed it on Render, the /compile route doesn't seem to work. However, all other routes are functioning as expected.
is this enough information ?
i still have no idea what "doesn't seem to work" actually means, nor any example input. what's the input you're providing? what's the output? what is the expected output? what have you tried?
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
we have https://play.go.dev , make your runnable example there
{
"code": "package main\n\nimport \"fmt\"\n\nfunc main() {\n\tfmt.Println(\"Hello, world Cool!\")\n}"
}
``` suppose this is the input so end output will be just a result string "Hello, world Cool!
which works fine in local server but if i test it on deployed server it always get stuck with a timeout warning
I think it can't install any package
@errant jetty
yes if you are compiling your code first time, it will be a little bit slower.
just wait
Error: Timeout was reached
well so as hhhapz said, you are not providing enough informations
read the link he sent
I already provided the information I had
okay, have you tried run the code on the server from shell?
this is running on a hobby account
so that's why
for testing purposes
that's a weird answer but nvm