Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getting 500 error #2

Open
closedstack opened this issue Jan 3, 2018 · 0 comments
Open

getting 500 error #2

closedstack opened this issue Jan 3, 2018 · 0 comments

Comments

@closedstack
Copy link

closedstack commented Jan 3, 2018

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant