You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@openwhisk.apache.org by GitBox <gi...@apache.org> on 2020/04/01 10:52:39 UTC

[GitHub] [openwhisk-runtime-dotnet] dmlo opened a new issue #38: Unknown error

dmlo opened a new issue #38: Unknown error 
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/38
 
 
   Good morning OpenWhisk. I'm trying to hook up a test action to a Postgres database like so:
   
   `var conn = new NpgsqlConnection(connectionString);
   var cmd = new NpgsqlCommand("INSERT INTO base_entity (name) VALUES ('danny')", conn);
   cmd.ExecuteNonQuery();`
   
   I am getting this error message:
   
   `C:\Users\dmlod>wsk -i activation logs 7c5b1161098b41239b1161098b012371
   2020-04-01T10:41:48.142980549Z stdout: at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   2020-04-01T10:41:48.143031669Z stdout: at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   2020-04-01T10:41:48.143036509Z stdout: at Apache.OpenWhisk.Runtime.Common.Run.HandleRequest(HttpContext httpContext) in /app/Apache.OpenWhisk.Runtime.Common/Run.cs:line 90
   2020-04-01T10:41:48.175771203Z stderr: The action did not initialize or run as expected. Log data might be missing.`
   
   Connection string is verified ok. DB is operational. OpenWhisk will run the action if I comment out the 'ExecuteNonQuery' line.
   
   Two questions: 
   1. Any idea where I've dropped the ball here?
   2. Is there a way to get a more detailed error message?
   
   Thank you for your time and I hope you're not too bored in quarantine.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] dmlo commented on issue #38: Unknown error

Posted by GitBox <gi...@apache.org>.
dmlo commented on issue #38: Unknown error 
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/38#issuecomment-607482106
 
 
   Please see [#39](https://github.com/apache/openwhisk-runtime-dotnet/issues/39) for the error that was causing the action to fail

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] dmlo closed issue #38: Unknown error

Posted by GitBox <gi...@apache.org>.
dmlo closed issue #38: Unknown error 
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/38
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [openwhisk-runtime-dotnet] dmlo commented on issue #38: Unknown error

Posted by GitBox <gi...@apache.org>.
dmlo commented on issue #38: Unknown error 
URL: https://github.com/apache/openwhisk-runtime-dotnet/issues/38#issuecomment-607253844
 
 
   In the end I was able to discover the error by using a try/catch block and outputting a string to Html.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services