Comments (11)
nothing?
from fredr.
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.
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.
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.
Could you please provide the lines of code that you are running?
from fredr.
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.
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.
@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.
@sboysel probably, retrying like we do now might end up helping the finicky-ness
from fredr.
@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.
@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)
- Unable to Install (Broken Dependency?) HOT 2
- Support for FRED Maps HOT 3
- Option to select Seasonally Adjusted Observation HOT 1
- upper bound too low for limit in fredr_category_series() HOT 3
- Pagination HOT 1
- Better test environment for API requests HOT 3
- CRAN issues HOT 25
- Removed from CRAN? HOT 2
- Fredr can't return a legit series_id HOT 3
- Getting fredr back on CRAN HOT 24
- Release fredr 2.0.0
- way to traverse category trees? HOT 4
- This likely isn't an issue with your code, but something to be wary of HOT 3
- Trouble downloading multiple FRED series HOT 5
- fredr() and parameter vintage_dates HOT 5
- M2 not FedFunds
- Release fredr 2.1.0 HOT 1
- fredr appears to be completely broken on my R setup HOT 6
- Capture multiple series simultaneously? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fredr.