question

Ion avatar image
Ion asked

Entity API Error : "ArgumentException: Cannot set a Request header with a null"

Hello!

I found this error while trying to use the new Entity API.

"ArgumentException: Cannot set a Request header with a null"

The "X-EntityToken" value is null in all the requests.

Is something i am doing wrong, or is a general API error?

Thank you!

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
brendan avatar image
brendan answered

The X-EntityToken is automatically set using the EntityToken from the results of your call to GetEntityToken. Can you check that the call to GetEntityToken was successful, and what the results were?

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ion avatar image Ion commented ·

Was my fault, i took the example of guilds from the blog and i forgot the entities "initialization", that is getting the token first.

Thanks!

0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.