Bonsai

Callremote problem

Recommended Posts

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

Share this post


Link to post

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.

 

Share this post


Link to post

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

Share this post


Link to post

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.