Code Monkey home page Code Monkey logo

Comments (11)

ceschi avatar ceschi commented on June 12, 2024

nothing?

from fredr.

DavisVaughan avatar DavisVaughan commented on June 12, 2024

Can you post a reproducible example of the code that triggers the error? Or the full error message?

Even if it happens randomly, that will give us something to call repeatedly on our end to try and trigger what you are seeing.

It is very hard to help without any examples.

from fredr.

sboysel avatar sboysel commented on June 12, 2024

No encoding supplied: defaulting to UTF-8.

I'm pretty that is an encoding message, not an error, from the httr::content call within fredr::fredr_request. We can explicitly pass utf8 to the encoding parameter of httr::content.

The actual error you are experiencing would be better diagnosed, as suggested by @DavisVaughan, with a reproducible example.

from fredr.

ceschi avatar ceschi commented on June 12, 2024

I agree the encoding piece is a message not an error, the Error in (function (endpoint, ..., to_frame = TRUE, print_req = FALSE) : part seems an error and it prevents the correct execution of the code. I am currently running again the script (both lin-by-line and as source(script.R) but the error is not popping up, while yesterday it did. I wonder if it is something related to release dates of some particular data series.

from fredr.

DavisVaughan avatar DavisVaughan commented on June 12, 2024

Could you please provide the lines of code that you are running?

from fredr.

ceschi avatar ceschi commented on June 12, 2024

as soon as I can reproduce the error and find the exact line that triggers it I will post it, as of now it seems to work

from fredr.

ceschi avatar ceschi commented on June 12, 2024

This seems to be the piece of code behind the error

base <- fredr_series_observations(series_id='BOGMBASE', frequency='q') %>% tbl_xts() %>% /(.,1000)

Again, the error comes and goes, it's not showing up all the times.

from fredr.

sboysel avatar sboysel commented on June 12, 2024

@ceschi I cannot seem to reproduce that error with fredr 1.0.0. Not sure I understand the /(.,1000) part, perhaps it was a typo. It seems like you're using this line as part of a more complicated script or function. If the issue persists, try to use the debugger with debug(fredr_series_observations) and then rerun the code in question.

@DavisVaughan Perhaps related to the response timeout issues addressed in #70 ?

from fredr.

DavisVaughan avatar DavisVaughan commented on June 12, 2024

@sboysel probably, retrying like we do now might end up helping the finicky-ness

from fredr.

ceschi avatar ceschi commented on June 12, 2024

@sboysel Same version I am using. The /(.,1000) part is just to divide everything by 1000 from millions to billions. Last time I tried it took like 12 tries before having the error again. It is exactly part of a bigger script that collects a number of series. I'll try with the debugger then, thanks!

from fredr.

sboysel avatar sboysel commented on June 12, 2024

@ceschi You could also try installing the development version of fredr that as of #70 , will retry GET requests up to 10 times. This can be done with devtools::install_github('sboysel/fredr').

from fredr.

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.