Like I said in my previous message, you can't send data to that URL. That 
URL identifies the *entire* database. With PUT, PATCH, and DELETE, you have 
to use a URL that identifies a *specific *record in the database.

The error message also says that the body of the request is empty, but I 
can't tell from the message itself what the underlying problem is with that.


On Monday, November 20, 2017 at 7:53:02 AM UTC-5, David Legard wrote:
>
> OK, thanks for the suggestions.
>
> There's something going on beyond my comprehension level.
>
> I can read the data from http://localhost:3000/db, but when I try to send 
> it back, even with an Http.emptyBody, I get:
>
> BadStatus { status = { code = 404, message = "Not Found" }, headers = Dict
>> .fromList [("Cache-Control","no-cache"),("Content-Type","application/json; 
>> charset=utf-8"),("Expires","-1"),("Pragma","no-cache")], url = "
>> http://localhost:3000/db";, body = "{}" }
>>
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to