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

I receive Error 400 msg #40

Open
tomkenig opened this issue Apr 13, 2018 · 2 comments
Open

I receive Error 400 msg #40

tomkenig opened this issue Apr 13, 2018 · 2 comments

Comments

@tomkenig
Copy link

Hi Mark,

What goes wrong

when I try to execute Your code, I receive error like this:

service_token <-gar_auth_service("C:/token/WWW/gog_webmaster/POLISH_ALL/my_file.json")
Error in init_oauth_service_account(self$secrets, scope = self$params$scope, :
Bad Request (HTTP 400).

Do You know what kind of problem is it?

When creating sevice account, i need to choose account role. Maybe this is couse of my problem. What role I need to choose?

Actual output

service_token <-gar_auth_service("C:/token/WWW/gog_webmaster/POLISH_ALL/my_file.json")
Error in init_oauth_service_account(self$secrets, scope = self$params$scope, :
Bad Request (HTTP 400).

Session Info

R version 3.4.4 (2018-03-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=Polish_Poland.1250 LC_CTYPE=Polish_Poland.1250 LC_MONETARY=Polish_Poland.1250
[4] LC_NUMERIC=C LC_TIME=Polish_Poland.1250

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] searchConsoleR_0.3.0 googleAuthR_0.6.2

loaded via a namespace (and not attached):
[1] httr_1.3.1 compiler_3.4.4 R6_2.2.2 assertthat_0.2.0 tools_3.4.4 curl_3.1
[7] memoise_1.1.0 jsonlite_1.5 digest_0.6.13 openssl_1.0

@MarkEdmondson1234
Copy link
Owner

Could you paste the URL it tries to authenticate with? That will hold the parameters and give a clue to what is missing. Perhaps scopes?

@tomkenig
Copy link
Author

ok, below:

set website to your URL including http://

website <- "https://tomaszkenig.pl"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants