Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick start fixes #39

Merged
merged 4 commits into from
Nov 23, 2020
Merged

Conversation

ssmssam
Copy link
Contributor

@ssmssam ssmssam commented Nov 20, 2020

Hi, I was encountering similar errors to that as described in #38 , running on Windows. The first part was that I hadn't created the pvoutput.yml and also hadn't specified data_service_url. I think as the code was written, both of those were not truly optional.

The second point which took me a while to spot, was that the os.path.join on Windows was putting a double // inbetween '.org' and 'service'. When this is parsed to the API, you get a really unhelpful 404 error if you look in the browser console with this error displayed on page "The page you requested is missing or has an error."

Using urllib's urljoin solved this problem. I haven't tested this in Linux.

I think hazaioud ran into problems with the Python code appearing to freeze due to all the Retries. Reducing the number of Retries to one stops the code from appearing to hang.

In windows this produces a // in between https://pvoutput.org//service/r2/search which the website then returns a unuseful 404 error
…e order. I think this is because it came from a dictionary
@JackKelly
Copy link
Member

Thanks loads for the pull request - looks great to me! (And great catch with the failure of os.join on Windows!) I'll merge now. (BTW, don't worry about the broken test - it's unrelated - the tests are failing with the master branch... something to do with PyTables - I'll start a new issue)

@JackKelly JackKelly merged commit c143baf into openclimatefix:master Nov 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants