Jump to content

API member customField problem


D-Trox
Go to solution Solved by Jim M,

Recommended Posts

Hi 

I have a problem with sending custom fields via API. 
Spaces are not taken into account.

I have to make an HTTP request in LUA and as we have to put the custom field in the link, then the spaces break the sending.

example: 
this works :
'WEBSITE/api/core/members/1?key=XXXXXXXXXXXXXXXXXXX&customFields[5]=<b>MyNameIs</b>'

but this does not work: 
WEBSITE/api/core/members/1?key=XXXXXXXXXXXXXXXXXXX&customFields[5]=<b>My Name Is</b>'

WEBSITE/api/core/members/1?key=XXXXXXXXXXXXXXXXXXX&customFields[5]=<b>My&nbsp;Name&nbsp;Is</b>'


is there any other more functional way to send via API for customs field or any solution?
Or mayby a way to pass information in a json body ? 

Thank you 

Edited by D-Trox
Link to comment
Share on other sites

if i'm trying on postman it work , so it nis not the hosting service. 

is it possible that invision is blocking an IP or something like that after too many calls ?

I making the call from the same ip but from another port. 

I mean that I have a script in my game server hosted on my dedicated server, which makes API calls to the invision site which is hosted on the same ip

But it was working before yesterday 

Link to comment
Share on other sites

8 minutes ago, D-Trox said:

if i'm trying on postman it work , so it nis not the hosting service. 

is it possible that invision is blocking an IP or something like that after too many calls ?

I making the call from the same ip but from another port. 

I mean that I have a script in my game server hosted on my dedicated server, which makes API calls to the invision site which is hosted on the same ip

But it was working before yesterday 

You should check your API Logs ( ACP => System => API => REST API Logs )  to see if the requests are blocked.

Link to comment
Share on other sites

hi 

I contact my provider and made some test with them and nothing are block. 
I made call from console of the dedicated server  and it work. 
i ping the ip and the port of the game server and it pass. 
The dedicated server does not seem to block calls and the ports in question are not blocked either.

Sure it not have somewhere can be block on invision ? 
A ip or a Port ? 

thank you 
 

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...