Jump to content
  • 0

API 403 Error



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

    • Gold Elliott Wave Analysis  Function - Trend Mode - Impulse Structure - Impulse wave Position -Wave A of (4) Direction - Wave A of (4) is still in progress Details - 1st Scenario - Gold now favors the current dip to continue as part of wave (4) in a zigzag structure.  2nd Scenario -  It may be wave 4 turning into an expanding flat with a dip below the current wave 4 low. If after the current bearish impulse below wave 4 low, the price reacts with a bullish impulse, then this scenario will be favored.  The 1st scenario will be preferred if the next rally is corrective. The 1st has a lower price forecast than the 2nd. Gold is currently experiencing a pullback from a fresh all-time high. However, the year-long and all-time bullish cycle remains intact. Buyers will therefore look for the next opportunity to buy the dip, anticipating that the uptrend will continue. Identifying when the dip is over is crucial. This blog post aims to analyze that. On the daily timeframe, the current bullish impulse trend emerged from the 1616 low of September 2022, marking the start of the supercycle degree 4th wave of a multi-decade impulse wave. Consequently, the supercycle 5th wave is far from completion as it has not even yet completed the 3rd sub-wave of its 3rd sub-wave, i.e., intermediate wave (3) of primary wave 3 (circled in blue). The current pullback is expected to be wave (4) of the primary degree.   On the H4 chart, wave (4) is completing its first wave—wave A—as an impulse. It is expected to correct upwards in wave B before dropping further to form a zigzag, at least into the 38.2-50% retracement zone at 2256-2199. After wave (4), the price could ascend again in wave (5). However, there can be alternative scenarios that may unfold. The best among them is a running flat structure for wave 4 of (3). The current impulse could complete a 3-3-5 structure for wave 4 below its current low if the response afterward is a bullish impulse. In summary, gold is in a pullback that could reach 2256-2199 before resuming its upward movement to continue the all-time bullish cycle to a new high. Technical Analyst : Sanmi Adeagbo Source : Tradinglounge.com get trial here!
    • Pepe Coin's rise to prominence serves as a fascinating example of the influence of community and hype in the cryptocurrency realm. Despite its creators acknowledging that PEPE holds no inherent value or profit potential, the coin's market value soared past $1 billion following its listing on Binance and Coinbase International Exchange. This surge underscores the significant impact of excitement and speculation in the crypto world. The Power of Community-Driven Initiatives PEPE's success highlights the power of community-driven initiatives in the crypto industry. Analysts cautiously predict that PEPE could potentially reach $0.000078 by 2030, although such projections are speculative and contingent on market conditions. Competition in the Meme Coin Space The rivalry between Pepe coin and Shiba Inu (SHIB) is heating up as new meme coins emerge. PEPE is currently trading at $0.00001424, boasting a 3.40% increase in value over the past day. Its weekly and annual performance is also promising, with gains of 32% and 109%, respectively. Analyzing PEPE's Price Trends Pepe Coin has been May's standout performer, experiencing a continuous rally in recent days. While it's stepping down from its recent all-time high of $0.00001535, its current value of $0.00001436 places it among the top 20 cryptocurrencies on CoinMarketCap. PEPE's trading volume of $4.06 billion ranks it 7th among the highest transactioned cryptos. The Ups and Downs of PEPE Since its launch, PEPE has seen fluctuations but has never dipped to its initial value. After an initial surge followed by a decline, PEPE rose again, setting a new all-time high three times higher than before. This pattern seems to be repeating itself. Conclusion Pepe Coin's journey exemplifies how community enthusiasm can drive the value of cryptocurrencies, even in the absence of inherent value. As the competition between meme coins intensifies, PEPE's story serves as a testament to the power of community-driven tokens in shaping the crypto landscape.
    • While platforms like Thetanuts Finance, Badger DAO, and Opyn provide intriguing features and opportunities, it's crucial for users to approach these advanced financial tools with a clear understanding of the risks involved. Nevertheless, i gave the Project a look and they seem to have their goal set and have made some reputable partnerships. I would say "with their recent listing on a tier 1 CEX like Bitget, If they continue on this path, they are a definitely worth keeping an eye on"...
  • Create New...