Skip to main content

Hi,

TX ver: latest

 

I am getting an error when import metadata or doing table flattening. This worked fine earlier, before 3 june.

 

Works fine using Postman.

 

Any suggestion what I am missing?

 

“One or more errors occurred.
Failed to execute request for endpoint 'Get Charge Points'.
One or more errors occurred.
Cannot send a content-body with this verb-type.

System.AggregateException: One or more errors occurred. ---> System.Net.ProtocolViolationException: Cannot send a content-body with this verb-type.
   at System.Net.HttpWebRequest.CheckProtocol(Boolean onRequestStream)
   at System.Net.HttpWebRequest.BeginGetRequestStream(AsyncCallback callback, Object state)”

 

/Bjørn A.

Hi ​@bjorn 

What sort of content-type does it have in postman?

Do you manually state the Accept:application/json header?


Hi,

Yes, I use Accept and Content.-type : application/json

 

/Bjørn A.

 


Hi ​@Thomas Lind ,

 

Inside my endpoint I need to get an “{accessToken}” from auth/token and refresh-token endpoint.

Then I “override header” Authorization = {accessToken}.

 

/Bjørn A.


Hi ​@Thomas Lind 

 

Have you had any chance to look into this? 

The “content-type: application/json” is missing???

 

Content.-type is added i both “commen setting” and “the endpoint”

 


regards,

Bjørn A.


Hi ​@bjorn 

Both in Postman and in TX it should be added automatically and shouldn’t need to be manually applied.

Have you tried to remove them and only have the Authorization part?


Hi,

I removed all accept and content-type., and only authorization part.

When I try to “Test connection” I get an error (see att.)

 


Hi ​@bjorn 

I assume you aren’t on the newest version since you reference a day when it stopped working.

You aren’t forcing a data type in the Authentication part so it should default to whatever is sent by the API.

It seems odd that it adds a Text content-type. Does it also do this in Postman?


Hi ​@Thomas Lind 

 

I found the solution,all good :-)

 

regards,

Bjørn A.


Hi ​@bjorn 

What was the solution then? I am a bit curious.


Hi,

My fault...

 

access token → content-type = application/json

refresh token → content-type = application/json

all endpoints→ content-type = blank

 

Thanks for your time :-)

 

regards,

Bjørn A.