Skip to main content
Announcements
A fresh, new look for the Data Integration & Quality forums and navigation! Read more about what's changed.
cancel
Showing results for 
Search instead for 
Did you mean: 
Jsi
Contributor

OpenAPI generation fails with Illegal base64 character 2b

Exporting api from swaggerhub as unresolved json (also fails with resolved) and generating components via Intellij plugin.

If I try to generate the entire api then the plugin simply hangs until I click cancel

If I try to generate only the login path then it fails with above message

The path is defined as

"/login" : {

   "post" : {

    "tags" : [ "login" ],

    "summary" : "Used to get JWT token for requests",

    "description" : "Submitting a correct username and password returns a token used to validate access. Tokens have a lifetime of 5 hours, after which they are no longer valid, and you will need to login again.",

    "requestBody" : {

     "content" : {

      "application/json" : {

       "schema" : {

        "$ref" : "# /components/schemas/LoginDetails"

       }

      }

     }

    },

    "responses" : {

     "200" : {

      "description" : "Succesful login",

      "content" : {

       "application/json" : {

        "schema" : {

         "$ref" : "# /components/schemas/Token"

        }

       }

      }

     },

     "401" : {

      "description" : "Unsuccesful login"

     }

    }

   }

}

 

The entire api is here https://app.swaggerhub.com/apis/Autorola/FM_Integration_API/2.6

 

Here is the error message

java.lang.IllegalArgumentException: Illegal base64 character 2b

at java.base/java.util.Base64$Decoder.decode0(Base64.java:848)

at java.base/java.util.Base64$Decoder.decode(Base64.java:566)

at java.base/java.util.Base64$Decoder.decode(Base64.java:589)

at org.talend.sdk.component.intellij.module.TalendModuleBuilder.modifySettingsStep(TalendModuleBuilder.java:171)

at com.intellij.ide.projectWizard.ProjectSettingsStep.setupPanels(ProjectSettingsStep.java:104)

at com.intellij.ide.projectWizard.ProjectSettingsStep.updateStep(ProjectSettingsStep.java:126)

at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.updateStep(AbstractProjectWizard.java:148)

at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.doFinishAction(AbstractProjectWizard.java:216)

at com.intellij.ide.util.newProjectWizard.AbstractProjectWizard.doOKAction(AbstractProjectWizard.java:167)

at com.intellij.ide.wizard.AbstractWizard.proceedToNextStep(AbstractWizard.java:236)

at com.intellij.ide.wizard.AbstractWizard$5.actionPerformed(AbstractWizard.java:198)

at java.desktop/javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1972)

at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2313)

at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:405)

at java.desktop/javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:262)

at java.desktop/javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:279)

at java.desktop/java.awt.Component.processMouseEvent(Component.java:6656)

...

Labels (3)
1 Reply
jlolling
Creator III

This has nothing to do with the topiq if this forum: Development of components! Please remove this and post it Design and Development.