Skip to content
This repository was archived by the owner on Apr 22, 2026. It is now read-only.
This repository was archived by the owner on Apr 22, 2026. It is now read-only.

Exception in thread "main" java.lang.IllegalArgumentException: no JSON input found #17

Description

@nicholak

I'm getting this error for all Thunderbird mail folders I have. This occurs after the labels JSON is printed to stdout:

Exception in thread "main" java.lang.IllegalArgumentException: no JSON input found at com.google.common.base.Preconditions.checkArgument(Preconditions.java:145) at com.google.api.client.util.Preconditions.checkArgument(Preconditions.java:47) at com.google.api.client.json.JsonParser.startParsing(JsonParser.java:215) at com.google.api.client.json.JsonParser.parse(JsonParser.java:358) at com.google.api.client.json.JsonParser.parse(JsonParser.java:335) at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:79) at com.google.api.client.json.JsonObjectParser.parseAndClose(JsonObjectParser.java:73) at com.google.api.client.googleapis.batch.BatchUnparsedResponse.getParsedDataClass(BatchUnparsedResponse.java:223) at com.google.api.client.googleapis.batch.BatchUnparsedResponse.parseAndCallback(BatchUnparsedResponse.java:184) at com.google.api.client.googleapis.batch.BatchUnparsedResponse.parseNextResponse(BatchUnparsedResponse.java:149) at com.google.api.client.googleapis.batch.BatchRequest.execute(BatchRequest.java:269) at to.lean.tools.gmail.importer.gmail.Mailbox.mapMessageIds(Mailbox.java:134) at to.lean.tools.gmail.importer.gmail.GmailSyncer.sync(GmailSyncer.java:66) at to.lean.tools.gmail.importer.Importer.importMail(Importer.java:108) at to.lean.tools.gmail.importer.Importer.main(Importer.java:76)
Update: remove my debugging, compile and run so that the line numbers make sense.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions