Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43311

Bad Request when adding credential

XMLWordPrintable

      Whenever I try adding a credential/token Jenkins shows error:

      java.io.IOException: HTTP 400 error Bad Request
      Caused: org.jenkinsci.plugins.publishoverdropbox.domain.model.RestException: {"error_description": "code doesn't exist or has expired", "error": "invalid_grant"}
      	at org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.execute(JsonObjectRequest.java:179)
      Caused: org.jenkinsci.plugins.publishoverdropbox.domain.model.RestException: Failed to open connection to server
      	at org.jenkinsci.plugins.publishoverdropbox.domain.JsonObjectRequest.execute(JsonObjectRequest.java:189)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.readAccessTokenFromWeb(DropboxV2.java:543)
      	at org.jenkinsci.plugins.publishoverdropbox.domain.DropboxV2.convertAuthorizationToAccessCode(DropboxV2.java:513)
      	at org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl.<init>(DropboxTokenImpl.java:51)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      	at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:529)
      Caused: java.lang.IllegalArgumentException
      	at org.kohsuke.stapler.RequestImpl.invokeConstructor(RequestImpl.java:544)
      	at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:783)
      	at org.kohsuke.stapler.RequestImpl.access$200(RequestImpl.java:83)
      	at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:678)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate interface com.cloudbees.plugins.credentials.Credentials from {"scope":"GLOBAL","authorizationCode":"gBZtTLLbbcIAAAAAAABh-WqE1qQqKTNywUcbd-tlAcv9fXiuoOHKGoFZ81kH5z4j","id":"","description":"Dropbox","stapler-class":"org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl","$class":"org.jenkinsci.plugins.publishoverdropbox.impl.DropboxTokenImpl"}
      

            rcgroot René de Groot
            caylan Caylan Larson
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: