Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Error saving meal to Kitura: 500 : Internal Server Error #38

Open
redwards72git opened this issue Feb 13, 2019 · 5 comments
Open

Error saving meal to Kitura: 500 : Internal Server Error #38

redwards72git opened this issue Feb 13, 2019 · 5 comments

Comments

@redwards72git
Copy link

receiving the below error after any attempt to add records after the initially successful record
Error saving meal to Kitura: 500 : Internal Server Error
built on Xcode 10.1 Mojave

Also getting the same error when using the forked build.

@ianpartridge
Copy link
Contributor

Hi, can you provide a bit more information please. Which stage of the tutorial are you doing? Can you share the code you're having problems with?

@redwards72git
Copy link
Author

redwards72git commented Feb 13, 2019 via email

@ianpartridge
Copy link
Contributor

Ok let me know when you have something I could look at.

@redwards72git
Copy link
Author

Hi Ian. I have investigated further. Generally the data is being stored in the DB however the error is being thrown from the line:

client.post("/meals", data: meal) { (meal: Meal?, error: Error?) in

in the MealTableViewController
Would you know what part of Kitura would throw the error so i can investigate further, not sure if error is coming from the server or the KituraKit.

@ianpartridge
Copy link
Contributor

I suggest you find your POST handler in the Kitura app: router.post("/meals", postHandler) or something, then instrument in postHandler(). Does it succeed?

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

No branches or pull requests

2 participants