Forums

Whitelist API

Hello, I'm trying to develop an app and would like to know if this API (http://fenixedu.org/dev/api/) could be whitelisted (I suppose that's the problem since I get a 403 error saying connection refused)

Thank you for your time and support.

No problem. That's done. Should work now.

Thanks, but I'm still getting the 403 error, maybe I'm doing something else wrong... Nevertheless thank you for the quick reply!

[formatted by admin]

Traceback (most recent call last):
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 594, in urlopen
        self._prepare_proxy(conn)
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 805, in _prepare_proxy
        conn.connect()
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/urllib3/connection.py", line 308, in connect
        self._tunnel()
      File "/usr/lib/python3.6/http/client.py", line 919, in _tunnel
        message.strip()))
    OSError: Tunnel connection failed: 403 Forbidden
    **NO MATCH**
    During handling of the above exception, another exception occurred:
    **NO MATCH**
    Traceback (most recent call last):
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/requests/adapters.py", line 449, in send
        timeout=timeout
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/urllib3/connectionpool.py", line 638, in urlopen
        _stacktrace=sys.exc_info()[2])
      File "/home/nunopferreira/.virtualenvs/my-virtualenv/lib/python3.6/site-packages/urllib3/util/retry.py", line 398, in increment
        raise MaxRetryError(_pool, url, error or ResponseError(cause))
    urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='fenix.tecnico.ulisboa.pt', port=443): Max retries exceeded with url:

Maybe this will help, if possible :)

that's because you are trying to access fenix.tecnico.ulisboa.pt, not fenixedu.org

Could the whitelist be opened for that url as well? It's the university site that used fenix API.

if you send us documentation on the fenix.tecnico.ulisboa.pt site showing that it has an api, we will whitelist the relevant api endpoints.

http://fenixedu.org/dev/api/#get-about

If you see the example request, you see that the accessed url is https://fenix.tecnico.ulisboa.pt/api/fenix/v1/about

That's why I need it whitelisted if possible, thank you for your time.

okay, sorry for the confusion. so to clarify, fenixedu.org is never used as an api endpoint right?

I don't think so no, you always poll fenix.tecnico.ulisboa.pt

It's probably my bad, I should have specified it

Ok. I have added fenix.tecnico.ulisboa.pt to the whitelist.

Thank you so much, that is working and so is my app!

You have great support, thank you once again.

Thanks gif

:-)

hello can you whitelist https://bscscan.com/apis --> api.bscscan.com

Sure, no problem -- that's been added to the whitelist and will be active within five minutes.

hello can you whitelist "https://fortniteapi.io/v2/shop" 'https://fortniteapi.io/v2/rarities' 'https://media.fortniteapi.io' --> https://fortniteapi.io

Looks like there are no official docs for that.