DataConservancy / osf-packaging

DEPRECATED - Do not clone or fork! See https://github.com/DataConservancy/dcs-packaging-osf/tree/master/osf-packager
1 stars 3 forks source link

Unrecognized field "auth_url" error #1

Closed emetsger closed 8 years ago

emetsger commented 8 years ago

When retrieving https://api.osf.io/v2/registrations/7tkxy using osf-cli-1.0.1-20160810.145246-1.jar:

java -jar /opt/batchs/scripts/osf-cli.jar -c /opt/batchs/tasks/osf-cli.conf  -n phz6b -o /tmp https://api.osf.io/v2/registrations/7tkxy
Configuring org.dataconservancy.cos.osf.client.config.JacksonOsfConfigurationService with classpath resource file:/opt/batchs/tasks/osf-cli.conf
Configuring org.dataconservancy.cos.osf.client.config.JacksonWbConfigurationService with classpath resource file:/opt/batchs/tasks/osf-cli.conf
Configuring org.dataconservancy.cos.osf.client.config.JacksonOsfConfigurationService with classpath resource file:/opt/batchs/tasks/osf-cli.conf
Configuring org.dataconservancy.cos.osf.client.config.JacksonWbConfigurationService with classpath resource file:/opt/batchs/tasks/osf-cli.conf
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "auth_url" (class org.dataconservancy.cos.osf.client.model.Institution), not marked as ignorable (4 known properties: "logo_path", "id", "links", "name"])
at [Source: N/A; line: -1, column: -1] (through reference chain: org.dataconservancy.cos.osf.client.model.Institution["auth_url"])

This is probably due to the use of OSF4I fields in the model.

emetsger commented 8 years ago

This was fixed in https://github.com/DataConservancy/osf-client/commit/a5a06afd19a021cda2ec9b7f23279a847e36fdf8.

You might have encountered this error because the change had not been deployed to our public Maven repository.

The latest build of the OSF CLI contains the fix.

See http://maven.dataconservancy.org/public/snapshots/org/dataconservancy/cos/osf-cli/1.0.1-SNAPSHOT/osf-cli-1.0.1-20160906.182932-2.jar