christophergandrud / imfr

R package for interacting with the IMF RESTful JSON API
49 stars 5 forks source link

Again lexical error #10

Closed RodionQNX closed 7 years ago

RodionQNX commented 7 years ago

Probably I'm doing something wrong, but I started to get the same error discussed in the previous issue: Error: lexical error: invalid char in json text.

Request Reje (right here) ------^ I have updated to the latest package from github (devtools::install_github('christophergandrud/imfr')) but the error is still there. Moreover I tried to download data directly from IMF using generated url: http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/.AD+AE+AF+DD+DE.PCPI_IX?startPeriod=2010&endPeriod=2017 and received the following error: The requested URL was rejected. Please consult with your administrator. Your support ID is: 384838716675644175 I tried different browsers (IE, Chrome) but had the same result, maybe there are some issues with internet settings, as I'm behind the proxy. </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/christophergandrud"><img src="https://avatars.githubusercontent.com/u/1285805?v=4" />christophergandrud</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p>Could you send a reproducible example? That would help a lot.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/RodionQNX"><img src="https://avatars.githubusercontent.com/u/20947825?v=4" />RodionQNX</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p>This is actually standard request: library(imfr) packageVersion("imfr") [1] ‘0.1.4’</p> <p>rates <- imf_data(database_id = 'IFS', indicator = c('PCPI_IX', 'FPOLM_PA','LUR_PT'), freq = 'M', start = 2010, print_url=TRUE)</p> <p>Attempting to download from: <a href="http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/.AD+AE+AF+AG+AI+AL+AM+AN+AO+AQ+AR+AS+AT+AU+AW+AX+AZ+BA+BB+BD+BE+BF+BG+BH+BI+BJ+BL+BM+BN+BO+BQ+BR+BS+BT+BV+BW+BY+BZ+CA+CC+CD+CF+CG+CH+CI+CK+CL+CM+CN+CO+CR+CS+CU+CV+CW+CX+CY+CZ+DD+DE.PCPI_IX?startPeriod=2010&endPeriod=2017">http://dataservices.imf.org/REST/SDMX_JSON.svc/CompactData/IFS/.AD+AE+AF+AG+AI+AL+AM+AN+AO+AQ+AR+AS+AT+AU+AW+AX+AZ+BA+BB+BD+BE+BF+BG+BH+BI+BJ+BL+BM+BN+BO+BQ+BR+BS+BT+BV+BW+BY+BZ+CA+CC+CD+CF+CG+CH+CI+CK+CL+CM+CN+CO+CR+CS+CU+CV+CW+CX+CY+CZ+DD+DE.PCPI_IX?startPeriod=2010&endPeriod=2017</a></p> <p>Downloading: 190 B<br /> Show Traceback Error: lexical error: invalid char in json text.</p> <html><head><title>Request Reje (right here) ------^ </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/arthurwelle"><img src="https://avatars.githubusercontent.com/u/6665804?v=4" />arthurwelle</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p>Hi there, same problem here!</p> <p>Loading required package: imfr</p> <blockquote> <p>packageVersion("imfr") [1] ‘0.1.4’</p> <p>real_ex <- imf_data(database_id = 'IFS', indicator = 'EREER_IX', country = c('CN', 'GB'), freq = 'A') Downloading: 170 B<br /> Error: lexical error: invalid char in json text.</p> <html><head><title>Request Reje (right here) ------^ </blockquote> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/christophergandrud"><img src="https://avatars.githubusercontent.com/u/1285805?v=4" />christophergandrud</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p>Is it still a problem?</p> <p>Sometimes the IMF end goes down, but I am now able to successfully complete these requests.</p> </div> </div> <div class="comment"> <div class="user"> <a rel="noreferrer nofollow" target="_blank" href="https://github.com/christophergandrud"><img src="https://avatars.githubusercontent.com/u/1285805?v=4" />christophergandrud</a> commented <strong> 7 years ago</strong> </div> <div class="markdown-body"> <p>I'll close this issue, but feel free to reopen if still a problem.</p> </div> </div> <div class="page-bar-simple"> </div> <div class="footer"> <ul class="body"> <li>© <script> document.write(new Date().getFullYear()) </script> Githubissues.</li> <li>Githubissues is a development platform for aggregating issues.</li> </ul> </div> <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.min.js"></script> <script src="/githubissues/assets/js.js"></script> <script src="/githubissues/assets/markdown.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/highlight.min.js"></script> <script src="https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.4.0/build/languages/go.min.js"></script> <script> hljs.highlightAll(); </script> </body> </html>