GithubHelp home page GithubHelp logo

Comments (8)

JessicaS11 avatar JessicaS11 commented on August 18, 2024

@fperez I suspect you're right. It sounds like the solution is better response handling/testing for a proper session after icepyx tries to log the user in. Is that something you could take on? It should fit well within the Earthdata class functionality.

from icepyx.

fperez avatar fperez commented on August 18, 2024

Thanks @JessicaS11! Yes, I'm happy to take a look at that code later on :) Unfortunately today my time for the hack week is winding down, I have to switch gears in 15 min.. But I'll tag this one for later and we can see if it can be made more robust.

from icepyx.

fperez avatar fperez commented on August 18, 2024

We'll need to experiment with exactly when these error codes come from NSIDC - I'm not an expert web person at all. Some input from perhaps folks on the NSIDC/EarthData side would help a lot, in terms of knowing when/which error codes can come from their end. It seems to me that what we need to do is, if a login is successful (which evidently can happen even when the service is down), learn exactly which error info can come back and check for those. We can then immediately surface such errors appropriately to the user...

from icepyx.

JessicaS11 avatar JessicaS11 commented on August 18, 2024

@asteiker @nicholas-kotlinski @wallinb Can one of you provide any of this information from the NSIDC side?

from icepyx.

nicholas-kotlinski avatar nicholas-kotlinski commented on August 18, 2024

It seems as though a 503 would not be generated from, or delivered by, NSIDC proper - but that the error is passed along from dependent upstream systems like EDSC or CMR. Based on some sleuthing by Amy FitzGerrell at NSIDC, it seems this most often happens during preventative maintenance on their end. When the error occurs outside of planned preventative maintenance, it’s not possible to predict it. The fix for the issue would be to have icepyx do a better job of surfacing the error, somehow, so that it isn’t buried.

HTTP Status Code 503 – Internal error because a service dependency is not available

Search HTTP Status Code 503 here for a short description: https://cmr.earthdata.nasa.gov/search/site/docs/search/api.html

from icepyx.

asteiker avatar asteiker commented on August 18, 2024

A few additional points: This error may be caused by either CMR or Earthdata Login. Earthdata Search Client (which we refer to internally across EOSDIS as "EDSC") isn't involved in our API response (though it also queries the NSIDC API just like icepyx or any other application or client). Both the CMR and Earthdata Login rarely have planned maintenance in their production environment so usually this will be caused by an ephemeral unplanned issue. Thanks Nic for tracking this down with Amy F. further!

from icepyx.

JessicaS11 avatar JessicaS11 commented on August 18, 2024

In digging into #166, I just started a branch surf_err that completes the first step of this issue (surfaces errors returned during the granules.get_avail() search step of Query). It'd be great if @facusapienza21 or @fperez could begin expanding this to other areas of API interaction to move this issue along.

from icepyx.

JessicaS11 avatar JessicaS11 commented on August 18, 2024

While debugging another user issue (which resulted from no subset data messages no longer being surfaced as an error), I added on to this branch to re-catch the no subset data orders and let the user know they can't be downloaded (in case they miss the order message). @facusapienza21 @fperez @nicholas-kotlinski @wallinb - if you have a few minutes to review #195 it would be greatly appreciated!

from icepyx.

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.