Jump to content
  • 0

API 403 Error


protagarusra

Question

Hi guys

I can't quite understand why, when I access the API via my local host it works fine, but when I access it via my hosting provider, I get the following. Any idea?

HTTP error: 403 <HTML><HEAD> <TITLE>Access Denied</TITLE> </HEAD><BODY> <H1>Access Denied</H1> You don't have permission to access "http&#58;&#47;&#47;api&#46;ig&#46;com&#47;gateway&#47;deal&#47;session" on this server.<P> Reference&#32;&#35;18&#46;c56bdc17&#46;1668005887&#46;2224a662 </BODY> </HTML>

  • Like 2
Link to comment

8 answers to this question

Recommended Posts

  • 0

Hi protagarusra,

I am getting the same error. Did you get anything resolved here?

For my Live account, I can login using the API Companion but not through my code. The API companion works with Demo and importantly my code also works in Demo. To try to access Live, within my code, I change the URL, username and password (using those values that work correctly in the API Companion), so really can't see why it isn't working.

Anyone any ideas?

  • Like 1
Link to comment
  • 0

Hi guys, 

I've got exactly the same issue, everythings fine when I run in Demo mode. But when I try to run the code in Live (changing the URL, username, pswd and token of course) I get the same error

<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD><BODY>\n<H1>Access Denied</H1>\n \nYou don't have permission to access \"http&#58;&#47;&#47;api&#46;ig&#46;com&#47;gateway&#47;deal&#47;session\" on this server.<P>\nReference\n</BODY>\n</HTML>\n
 
I've had the IG support team on the phone two times now (+ a few emails documenting) and no solution yet... 
 
Using the api companion no problem I can switch between prod and demo without a glitch. Same using Postman (local or cloud) I get no problem authentificating... your problem been solved yet ?
  • Like 1
Link to comment
  • 0

Been in touch with support by email but it's a long wait to hear anything back. Over a week ago they passed it on to a developer to look at but I haven't heard anything back yet.
My error message looks to be similar (and likely the same) as yours.
I can login in to live from various sources but not the one I actually need to use. That source works for Demo.
If I use incorrect credentials, I get the same "Access Denied" so it looks to me like it is being blocked from IG's side (but only specific sources/domains/IP addresses).

Link to comment
  • 0

I've pretty much only been using https. IIRC, I tested http a few months back without any noticeable difference.

I updated this thread to point out that something has most likely changed at IG's side to allow this to work. My code is unchanged for several months and I only retested when I was looking at something else and was expecting this to give the same error as before.

Connecting to Demo in the same way worked last December and is still working now. Connecting to Live has worked from other applications; it just wasn't working from where I needed it to.

As it now seems to be working, if I decide to move my code over I have options and a backup strategy already built if this happens in the future.  I just worry that IG may make changes in the future and that the APIs stop working with support not really being interested in resolving the matter. Of course my support call may have initiated some change or bug-fix that I'm not been updated on.

  • Like 1
Link to comment
  • 0

Thanks for the news TwoStepsForwardOneStepBack, 

I've re-tested on my side, still the same issue (the error message has changed though). And bug-or-feature, of course I'm using https:// 

IG support has stopped answering emails, maybe I've run out of some kind of support quota... 

Link to comment

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
  • image.png

  • Posts

    • Thanks, I can see it is there, but I cannot see what FTSE 350 sector it belongs to.  I am looking for the breakdown of all the sectors, ie what stocks belong to each of the following "epic" sectors (that sheet is useful but it doesnt tie back 100%): FTSE 350 Banks FTSE 350 General Retailers FTSE 350 Mining FTSE 350 Oil and Gas Producers FTSE 350 Real Estate Investment Trusts FTSE 350 Aerospace and Defence FTSE 350 Household Goods and Home Construction FTSE 350 Beverages FTSE 350 Chemicals etc
    • CatGPT isn't your average meme coin. Launched in June 2023, this AI-powered token on Solana boasts a working AI chatbot with its own personality (and perhaps a desire for world domination, according to its fans!). But CatGPT's claws reach further than just memes. This feline token has generated significant buzz with its well-structured tokenomics and high trading activity. Over $4 million locked in liquidity and $100 million in trading volume within a short period is no small feat. Plus, an active and enthusiastic community fuels the FOMO fire, with KOLs and the project team keeping the engagement high. CatGPT's listing on Bitget todayis a sign to watch closely – this meme coin with a technological twist might just have nine lives of success ahead.
    • Introducing BlackCardCoin, a revolutionary cryptocurrency designed to streamline digital transactions and empower users in the modern financial landscape. Built to seamlessly integrate with the BlackCard, this platform simplifies the process of spending and earning cryptocurrency, mirroring traditional money exchanges. At its core, BlackCardCoin aims to break free from the constraints of traditional banking systems, offering individuals a pathway to maximize their financial potential. With a focus on providing a secure, rewarding, and hassle-free financial experience, BlackCardCoin offers users unparalleled benefits. Key Features: BlackCard Integration: The BlackCard serves as a gateway to utilizing cryptocurrency like regular money on a global scale. Offering no spending limits, up to 13% CashBack on purchases and cash withdrawals, and boasting fee-free transactions, the BlackCard enables users to shop and access cash worldwide with unprecedented ease. Fee-Free Staking Mechanism: One of the standout features of BlackCardCoin is its fee-free staking mechanism. Users can secure both virtual and physical cards by staking $1,000 for a period of 6 months. This not only waives delivery fees but also rewards users with 10% of their stake back in USD, significantly enhancing their purchasing power. Market Performance: Recent market trends have seen BlackCardCoin experience a remarkable surge in price, with its value skyrocketing by over 4000% within just 30 days. This surge can be attributed to the growing popularity of the BlackCard crypto credit card and the unparalleled convenience that BlackCardCoin offers for crypto spending. Furthermore, its listing on major cryptocurrency exchanges like Bitget and Mexc has further bolstered its adoption and market traction.
×
×
  • Create New...
us