Bonsai Posted June 2, 2018 Share Posted June 2, 2018 Hi, I have a problem with the callremote function. When I use the URL of my API that I made in the browser, I get an instant result. When I call this URL in MTA using callremote, it takes ages until I get a response, or it will just time out. Does anyone know what could be causing this? The URL works perfectly fine in a browser, but in MTA it just takes soooo long. I'm not using the MTA php sdk. Bonsai Link to comment
Moderators IIYAMA Posted June 3, 2018 Moderators Share Posted June 3, 2018 Maybe it is related to the protocol. (Http/https) Or try to define the head, as they both might try to request different formats. That is all I can think of. Link to comment
Bonsai Posted June 8, 2018 Author Share Posted June 8, 2018 I might have found a reason for this. There is another resource using fetchRemote, it seems to work smooth when that resource is not running. I wonder if that new "queueName" argument can help to fix this. https://wiki.multitheftauto.com/wiki/CallRemote I will try that. Thanks! Bonsai Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now