links-lang / links

Links: Linking Theory to Practice for the Web
http://www.links-lang.org
Other
325 stars 42 forks source link

Internal Server Error on RPC #175

Closed elordin closed 5 years ago

elordin commented 7 years ago

Code

When clicking the "Add" Button an AddItem message is sent to the apiService Process, where the message handler calls insertItem.

An AJAX request is then created for the database operation on the server.

This requests fails with a 500 Internal Server Error

Error handling ((headers
  ((accept */*) (accept-encoding "gzip, deflate, br")
   (accept-language "de-DE,de;q=0.8,en-US;q=0.6,en;q=0.4")
   (connection keep-alive) (content-length 724)
   (content-type application/x-www-form-urlencoded) (dnt 1)
   (host localhost:8080) (origin http://localhost:8080)
   (referer http://localhost:8080/)
   (user-agent
    "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36 OPR/45.0.2552.812")))
 (meth POST) (resource /) (version HTTP_1_1) (encoding (Fixed 724))): (Failure "jsonparse: first argument to a table must be a database")

Database connection works, as the page displays the list items already in the DB when first loading. (Loaded at 422).

jamescheney commented 5 years ago

Special case of #525

dhil commented 5 years ago

Closing since #525 has been closed.