andreweatherman / cbbdata

https://cbbdata.aweatherman.com
Other
14 stars 2 forks source link

Issue with persistent log-in #9

Open chadallison opened 10 months ago

chadallison commented 10 months ago

I encountered an issue with setting up the persistent login with my credentials in my .Renviron file. After following the prompts to write in my username and password in the file, the specified format would not show for me and I was unable to properly input the information. I was able to find a workaround by doing it in the base R GUI instead of in my RStudio, so I was able to figure out the correct format and get everything working. Figured I would still let you know of the issue. I will attach a screenshot of what it looked like in my RStudio console.

RStudio version 2023.06.0 (Build 421) and R version 4.3.1. cbb_login_issue

andreweatherman commented 10 months ago

Thanks, I'll look into this tomorrow. Weird that it worked in the base R GUI and not RStudio.

My hunch is that it's because you are namespacing cbbdata::cbd_login and have not loaded the package into your session. If you do not have cbbdata loaded in or have not loaded in httr2, that error would be expected to show because none of the httr2 functions are found -- a product of them not being loaded into your session -- and R would not be able to "find" the resp object to return.

Try again in RStudio but first load cbbdata -> library(cbbdata).

That function "imports" httr2, so just loading in cbbdata or httr2 should (hopefully) solve that problem.

chadallison commented 10 months ago

Interesting. I gave that a shot and it still gave me the same output. I am wondering if it is something on my end.

I did pull out my laptop and see if it did the same thing, and it did. Same deal, running RStudio and tried it with namespacing and by loading in cbbdata first. I suppose it could still just be something on my end with how I have my RStudio set up, although I don't know of any preferences I have changed up from the out-of-the-box installation.

Happy to be a guinea pig and test things out when you're able to address it! Thankfully not a roadblock for me since I was able to see the format in the R GUI so there's no rush on my end to get it sorted out.

andreweatherman commented 10 months ago

Strange, particularly as I was able to replicate that error message in a new session by just using namespaces, but that doesn't appear to be the issue on your end if you loaded cbbdata and it still didn't work.

If you were able to get things up and running that's great. Haven't ran into this issue yet, either.

faberma1 commented 6 months ago

I'm having this problem too. I am new to R so I don't know if this is something on my end or not, but I was getting the 'resp' error but now I'm getting this. I'm not sure exactly what to do here.

Screenshot 2024-05-11 at 2 46 35 PM