Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error generated in get_food_details() #7

Open
DataKritter opened this issue Dec 19, 2023 · 1 comment
Open

Error generated in get_food_details() #7

DataKritter opened this issue Dec 19, 2023 · 1 comment
Labels
bug Something isn't working priority:medium question Further information is requested

Comments

@DataKritter
Copy link

Describe the bug
When I try to get_food_details, I get the following error:
Error in curl::curl_fetch_memory(url, handle = handle) :
URL rejected: Malformed input to a URL function

To Reproduce
I just ran the code examples from the package description page at https://github.com/Nelson-Gon/rfdc

Expected behavior

The same results as shown in the code example

Unexpected behavior
Error in curl::curl_fetch_memory(url, handle = handle) :
URL rejected: Malformed input to a URL function
System Details

rfdc 0.1.1
R 4.3.1
Windows


Delete this once you're ready to submit
Thank you

@DataKritter DataKritter added the bug Something isn't working label Dec 19, 2023
@Nelson-Gon
Copy link
Owner

Nelson-Gon commented Dec 20, 2023

Hi,

Thanks for raising this issue. At the moment, I am not able to reproduce this (although I am using a Mac). Do you have extra information like the URL shown as part of the error e.g.

Using URL: https://api.nal.usda.gov/fdc/v1/food/504905?api_key=*****&nutrients="

Alternatively, can you reproduce this error with pyfdc?

@Nelson-Gon Nelson-Gon added question Further information is requested priority:medium labels Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:medium question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants