Code Monkey home page Code Monkey logo

Comments (7)

dblodgett-usgs avatar dblodgett-usgs commented on August 25, 2024

Here's an implementation that more or less does it.

https://github.com/dblodgett-usgs/hydroRsb/blob/master/R/model_file_download.R

from sbtools.

sckott avatar sckott commented on August 25, 2024

I assume this applies specifically to item_file_download()?

from sbtools.

sckott avatar sckott commented on August 25, 2024

Looking at this - curios in the REST helpers why we only support certain content types? AFAICT sbtools only downloads the files, and doesn't do anything more than that like try to read the file in, etc, -- So could we just allow any file type, esp. with GET requests?

from sbtools.

jordansread avatar jordansread commented on August 25, 2024

yeah, I had the same question here: #98

Supported types vs unsupported types.

from sbtools.

aappling-usgs avatar aappling-usgs commented on August 25, 2024

to summarize, i think we decided that we didn't really want to specify which types were permitted, but we needed some way to determine whether we were getting an error or not (e.g., user might not be authenticated). checking for known types was the temporary solution.

@sckott, maybe you've already fixed this today with handle_errors (i haven't looked very carefully...)? or maybe there's some other way to check for non-authentication & other errors?

from sbtools.

sckott avatar sckott commented on August 25, 2024

Okay, thanks. Oh, so, if the content-type header is consistent with an authorization error, then you'd stop on that?

I can write some tests for handle_errors to make sure (ping #128 )

from sbtools.

aappling-usgs avatar aappling-usgs commented on August 25, 2024

Sounds good!

from sbtools.

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.