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

CH04 Image of the day; nasa site errors with 404 between 8 pm - 11:59 pm EDT because it could not generate image for the next day (nasa site assumes it's the next day due to UTC time it uses) #21

Open
mohamed-a opened this issue Oct 26, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@mohamed-a
Copy link

Exercise
CH04 packaging java

Problem
CH04 Image of the day; nasa site errors with 404 between 8 pm - 11:59 EST pm because it could not generate an image for the next day (nasa site assumes it's the next day due to UTC time it uses)

On 2020-10-25, when launching //localhost:800/image between 8 pm CST and just before 11:00 pm CST, the nasa site for astronomy image of the day returns 404 error and outputs the date as 2020-10-26. Clearly, it's using UTC. Once the time rolls to 11 pm CST (12 am EST), //localhost:800/image returns the expected json with image url.

The workaround is to provide start and end time as the url parameters.

Docker version
Please run docker version and paste the output.

Client: Docker Engine - Community
Version: 19.03.6
API version: 1.40
Go version: go1.12.16
Git commit: 369ce74a3c
Built: Thu Feb 13 01:27:49 2020
OS/Arch: linux/amd64
Experimental: false

Server: Docker Engine - Community
Engine:
Version: 19.03.6
API version: 1.40 (minimum version 1.12)
Go version: go1.12.16
Git commit: 369ce74a3c
Built: Thu Feb 13 01:26:23 2020
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.2.13
GitCommit: 7ad184331fa3e55e52b890ea95e65ba581ae3429
runc:
Version: 1.0.0-rc10
GitCommit: dc9208a3303feef5b3839f4323d9beb36df0a9dd
docker-init:
Version: 0.18.0
GitCommit: fec3683

Code version
Please run git log -n 1 and paste the output.

commit 19a8d04 (HEAD -> master, origin/master, origin/HEAD)
Author: Elton Stoneman [email protected]
Date: Fri Sep 25 09:10:55 2020 +0100

Add ep. 20

Additional context
Add any other context about the problem here.

@sixeyed sixeyed added the enhancement New feature or request label Mar 3, 2021
@sixeyed
Copy link
Owner

sixeyed commented Mar 3, 2021

There's a known issue in the APOD API - nasa/apod-api#48. I guess they'll fix it one day, but the NASA team probably have other things to work on. The fix can be ported from here - https://github.com/gumbarros/kepler/blob/master/lib/src/services/api/api.dart#L38.

@nwunderly
Copy link

Does this still happen? nasa/apod-api#51 back in November should have fixed that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants