question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"AuthConfig" unrecognized field 'identitytoken' due config loading

See original GitHub issue

Hello, we got the issue, using latest version of “docker-java” while trying to load and parse DOCKER configuration file (“$HOME/.docker/config.json”).

It doesn’t accept the field ‘identitytoken’. I have noticed that you have ‘registrytoken’ field, which have been used since DOCKER API v1.22 version for the same purpose. I checked documentation, it was renamed there into --> ‘identytoken’ just in the next DOCKER API v1.23 version.

Here is some stacktrace for more detailed info:

Caused by: java.lang.IllegalArgumentException: Unrecognized field "identitytoken" (class com.github.dockerjava.api.model.AuthConfig), not marked as ignorable (6 known properties: "serveraddress", "username", "auth", "password", "email", "registrytoken"])
 at [Source: N/A; line: -1, column: -1] (through reference chain: java.util.LinkedHashMap["auths"]->java.util.LinkedHashMap["hostname"]->com.github.dockerjava.api.model.AuthConfig["identitytoken"])
	at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:3589)
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3530)
	at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:3518)
	at com.github.dockerjava.core.AuthConfigFile.loadConfig(AuthConfigFile.java:120)
 

Looks, that should be enough to just rename ‘@JsonProperty("identitytoken")’.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
KostyaShacommented, Sep 18, 2018

released 3.1.0-rc-5 should be on maven repos tomorrow

1reaction
berinlecommented, Mar 7, 2018

any updates on this? i am hitting the same issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Execution failed for task ':buildDB2BotcImage' - Stack Overflow
Your problem is most likely related to Issue #921 of the docker-java project. Hello, we got the issue, using latest version of "docker-java" ......
Read more >
gcloud auth login | Google Cloud CLI Documentation
2. Copy the long command that begins with gcloud auth login --remote-bootstrap=" . 3. Paste and run this command on the command line...
Read more >
Red Hat JBoss Enterprise Application Platform 7.0.0.GA
... net.shibboleth.utilities.java.support.velocity · net.shibboleth.utilities.java.support.xml · org.apache.activemq.artemis.api.config ...
Read more >
CHANGELOG.md - hashicorp/vault - Sourcegraph
auth/cert: Vault does not initially load the CRLs in cert auth unless the read/write ... information from the auto-auth config map on renewals...
Read more >
Artix Security Guide, C++ - Micro Focus
Example 2: Extract from the Secure Server HTTPS Configuration ... 2. The orb_plugins list specifies which Artix plug-ins to load as.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found