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

Unable to set permissions for Windows File System #112

Open
FelixDev0518 opened this issue Mar 16, 2021 · 1 comment
Open

Unable to set permissions for Windows File System #112

FelixDev0518 opened this issue Mar 16, 2021 · 1 comment

Comments

@FelixDev0518
Copy link

FelixDev0518 commented Mar 16, 2021

(Please fill out these details before submitting an issue)

Sample Name

(i.e. Gmail Quickstart)
Google Sheets API v4 Sample Code in Java

Expected Behavior

Access to the Google Spread Sheet

Actual Behavior

Show the message "Unable to set permissions for C:\Users**\logindemo2\tokens, because you are running on a non-POSIX file system."

Specifications

  • Java version (15)
  • OS (Windows 10)

Log

com.google.api.client.util.store.FileDataStoreFactory setPermissionsToOwnerOnly
WARNING: Unable to set permissions for C:\Users**\logindemo2\tokens, because you are running on a non-POSIX file system.
Exception in thread "main" com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request
{
"code" : 400,
"errors" : [ {
"domain" : "global",
"message" : "Unable to parse range: Sheet1!A2:A4",
"reason" : "badRequest"
} ],
"message" : "Unable to parse range: Sheet1!A2:A4",
"status" : "INVALID_ARGUMENT"
}
at com.google.api.client.googleapis.json.GoogleJsonResponseException.from(GoogleJsonResponseException.java:150)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113)
at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:443)
at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1108)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:541)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:474)
at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:591)
at com.example.logindemo2.SheetBot.main(SheetBot.java:152)

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':SheetBot.main()'.

Process 'command 'C:/Program Files/Java/jdk-15.0.1/bin/java.exe'' finished with non-zero exit value 1

@boatrainlsz
Copy link

I got same issue

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