You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I then went to a non-apex version of the code (I'm porting a codebase over) and tried the same code...and everything worked, so I'm not sure why there is a segfault.
What is the way around this? Why is this happening?
The text was updated successfully, but these errors were encountered:
Potentially a couple of things going on here. First fmt.Println() writes to Stdout which Apex can't do. You need to write to Stderr (fmt.Fprintf(os.Stderr, "message")).
Additionally, you may have some issues dropping the context into that Println. I've seen issues where Apex doesn't always like to log out pointers. A potential solution is to do something like fmt.Fprintf(os.Stderr, "%#v\n", ctx)
Finally to answer your question about raising a context.done, simply by returning from the func the node shim will raise the .done on your behalf.
Hey,
So I'm connecting to a RDS Mysql DB using golang's sql driver.
I do so like this
The function is called
getTags
and I get this error when I doapex invoke getTags
This doesn't look like a run time error, as a
Println
put right before thesql.Open
doesn't run.From looking around, most of the examples are in node and indicate that I need to do a
context.done
or raise the timeout.I increased the timeout to 300s and the same error occurred.
I then looked around the source code to see if the
Context
type had aDone
function defined on it...but it doesn't look like it does.I looked at the logs and found this
So I then went to a non-apex version of the code (I'm porting a codebase over) and tried the same code...and everything worked, so I'm not sure why there is a segfault.
What is the way around this? Why is this happening?
The text was updated successfully, but these errors were encountered: