Skip to content

getting 500 error #2

Description

@closedstack

First off, awesome idea. Didn't find any other ready to use interface like this.

Getting 500 error when I try to insert data using the example in the readme. MySQL is running on my local machine, here is the console window output

C:\WINDOWS\system32>docker run -p 8080:8080 -e RAPID_MYSQLCONNECTIONSTRING="server=192.168.1.101;uid=root;pwd=TestPssword!;database=test" workmaze/rapid.mysql Hosting environment: Production Content root path: /Rapid.MySql Now listening on: http://0.0.0.0:8080 Application started. Press Ctrl+C to shut down. info: Microsoft.AspNetCore.Hosting.Internal.WebHost[1] Request starting HTTP/1.1 POST http://127.0.0.1:8080/api/table/user application/json 318 info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[1] Executing action method Rapid.MySql.Controllers.TableController.Post (Rapid.MySql) with arguments (user, [ { "Country": "UK", "Age": "30", "Name": "Simon", "Language": "Welsh" }, { "Country": "Sweden", "Age": "30", "Name": "Philip", "Language": "Swedish" }, { "Country": "Norway", "Age": "40", "Name": "Ola", "Language": "Norsk" }, { "Country": "Finland", "Age": "25", "Name": "Ola", "Language": "Finnish" } ]) - ModelState is Valid info: Microsoft.AspNetCore.Mvc.Internal.ObjectResultExecutor[1] Executing ObjectResult, writing value Microsoft.AspNetCore.Mvc.ControllerContext. info: Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker[2] Executed action Rapid.MySql.Controllers.TableController.Post (Rapid.MySql) in 599.4443ms info: Microsoft.AspNetCore.Hosting.Internal.WebHost[2] Request finished in 941.913ms 500 application/json; charset=utf-8

Many Thanks!
Sunil

(P.S. - it would be awesome to have a mechanism to be able to do authentication via API key from a security perspective)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions