Coder Social home page Coder Social logo

Server Error (403: Forbidden) about siphon HOT 9 CLOSED

rvalent avatar rvalent commented on August 23, 2024
Server Error (403: Forbidden)

from siphon.

Comments (9)

dopplershift avatar dopplershift commented on August 23, 2024

Can you confirm with NCAR's HPC support that this is even expected to work? Many HPC environments disable access to external networks.

from siphon.

dopplershift avatar dopplershift commented on August 23, 2024

Can you test and see if this works?

import urllib.request

resp = urllib.request.urlopen('http://weather.uwyo.edu/cgi-bin/sounding?region=naconf&TYPE=TEXT%3ALIST&YEAR=2022&MONTH=08&FROM=1100&TO=1100&STNM=72632')
print(resp.read())

from siphon.

rvalent avatar rvalent commented on August 23, 2024

Thank you, dopplershift -- your suggestion works! I am very grateful.

If possible, I would like to see NCAR JupyterHub be able to handle such data transfers by default.

Would this entail changes on the Unidata side or on the NCAR/UCAR side?

from siphon.

dopplershift avatar dopplershift commented on August 23, 2024

@rvalent Wait, are you saying that sample code worked on Casper? Because I was expecting it to fail given your previous problem.

from siphon.

rvalent avatar rvalent commented on August 23, 2024

@dopplershift You are correct! I just checked it now from the JH window. That sample code fails in the same way:

Traceback (most recent call last):
File "", line 3, in
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 531, in open
response = meth(req, response)
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 569, in error
return self._call_chain(*args)
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 503, in _call_chain
result = func(*args)
File "/glade/work/valent/conda-envs/casper-rozoff-siphon/lib/python3.7/urllib/request.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden

from siphon.

dopplershift avatar dopplershift commented on August 23, 2024

@rvalent Ok, well that sample code will work on any machine with a non-impeded network configuration--and involves Siphon in no way.

In other words, the only way this works is if NCAR tweaks something, but I want to be clear: it is very common, if not expected, that you do not have arbitrary network access in an HPC environment.

Either way, there's no problem with Siphon here and there's nothing we can do to solve this on our end.

from siphon.

rvalent avatar rvalent commented on August 23, 2024

@dopplershift Thank you. This is very helpful.

from siphon.

jbaksta avatar jbaksta commented on August 23, 2024

The network on this cluster is not bound by any outgoing rules. It's more closer architected to a cloud like element. I believe it might be a data server issue. running this several times on various machines, I would potentially get a 403 on Casper systems or sometimes a too many request or system is too busy. This suggests a rate limiter impoementation on the server side that may have blocked our system at some point (forever because of lots of requests). Hard to say without getting in touch with the data server administrator.

from siphon.

dopplershift avatar dopplershift commented on August 23, 2024

@jbaksta That's interesting. I regularly get a 503 from the Wyoming server when they're overloaded, but I have never experienced a 403.

from siphon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.