You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use Dynaweb to talk to a RESTheart docker instance, in order to read/write to a mongoDB.
Following this (little outdated) tutorial, I'm trying to create a collection via PUT http://localhost:8080/restheart/movies with JSON body {"desc": "my favorite movies"}.
The equivalent (working) curl call is:
curl -i -H "Content-Type: application/json" -X PUT http://localhost/restheart/movies -d '{"desc": "my favorite movies"}'
I'm expecting that using the example 5 and changing the url, endpoint, json string and method would work without issues.
Actual Behavior
The WebResponse returns a 415 UnsupportedMediaType status code, with content
{
"http status code": 415,
"http status description": "Unsupported Media Type",
"message": "Content-Type must be either: application/hal+json or application/json"
}
It seems that Content-Type is not correctly passed as header.
Steps to Reproduce the Problem
open the example 5 in dynamo studio (I also changed the execution type to manual)
change the url to http://localhost:8080/restheart (the url pointing to the restheart instance+database name)
change the endpoint to movies
change the json string to {"desc": "my favorite movies"}
change the metod to PUT
run the project
Specifications
- DynaWeb: 1.0.3
- Dynamo : Dynamo Studio 1.3.3.4111
- Operating system : Windows 10 1809
- .NET : 4.6.2
The text was updated successfully, but these errors were encountered:
I might have a similar problem with Dynaweb as the one described here.
I can succesfully receive an authentication response from an API, but when I add a Webrequest.Addparameter node in order to add a user_identifier I receive the following error:
Unsupported Media Type. Please set Content-Type header to application/json.
It appears as if the header is now skipped during the webrequest excecution, yet in the Webrequest.Parameters node the Content-Type is correctly displayed as being application/json.
I tried playing around with the order of the nodes, but I don't think that should matter, right?
hey chaps, it seems the AddParameter node has been exhibiting some strange behaviour on multiple fronts, I'll try and have a look and see what's going on.
Expected Behavior
I'm trying to use Dynaweb to talk to a RESTheart docker instance, in order to read/write to a mongoDB.
Following this (little outdated) tutorial, I'm trying to create a collection via
PUT http://localhost:8080/restheart/movies
with JSON body{"desc": "my favorite movies"}
.The equivalent (working) curl call is:
I'm expecting that using the example 5 and changing the url, endpoint, json string and method would work without issues.
Actual Behavior
The WebResponse returns a
415 UnsupportedMediaType
status code, with contentIt seems that Content-Type is not correctly passed as header.
Steps to Reproduce the Problem
http://localhost:8080/restheart
(the url pointing to the restheart instance+database name)movies
{"desc": "my favorite movies"}
PUT
Specifications
The text was updated successfully, but these errors were encountered: