Xero-NetStandard icon indicating copy to clipboard operation
Xero-NetStandard copied to clipboard

Forbidden in request on server, working fine on local

Open Anmol16q opened this issue 3 years ago • 3 comments

I've tried it says forbidden Pls check try {

            //ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
            var xeroToken = (XeroOAuth2Token)await _XeroClient.RequestXeroTokenAsync(code);


            List<Tenant> tenants = await _XeroClient.GetConnectionsAsync(xeroToken);
            Tenant firstTenant = tenants[0];
            TokenUtilities.StoreToken(xeroToken);
        }
        catch (Exception ex)
        {
        }

in call back error code I've checked code and state are coming

Anmol16q avatar Jul 04 '22 14:07 Anmol16q

Hello! Which Xero organisation did you try to connect may I ask?

rlayhbrian avatar Jul 05 '22 03:07 rlayhbrian

I've only one organisation .. which I am selecting .. and only one App .. that should not be a problem..

I have VM starting 111.XXXXX.X3.241:7070... is it causing the problem.. It is working fine in local machine ...

Is absence of a domain name causing the error ..pls help

Anmol16q avatar Jul 06 '22 08:07 Anmol16q

Please could you contact Xero's API Support team using this link https://developer.xero.com/contact-xero-developer-platform-support and include your client id and date and time of the last error (and the timezone)

RettBehrens avatar Aug 02 '22 21:08 RettBehrens