W
W
Wilson2021-02-18 20:43:12
Java
Wilson, 2021-02-18 20:43:12

Why does the Bad Base64 error occur?

Project - https://github.com/aqnouch/Signal-Setup-Guide
The installation went well, it remains to migrate the database and there was a trace. mistake:

[email protected]:/var/Signal-Server# java -jar service/target/TextSecureServer-3.21.jar abusedb migrate service/config/signal.yml java.io.IOException: Bad Base64 input character '_' in array position 13 at org.whispersystems.textsecuregcm.util.Base64.decode(Base64.java:1221) at org.whispersystems.textsecuregcm.util.Base64.decode(Base64.java:1287) at org.whispersystems.textsecuregcm.util.Base64.decode(Base64.java:1244) at org.whispersystems.textsecuregcm.util.Base64.decodeWithoutPadding(Base64.java:1255) at org.whispersystems.textsecuregcm.util.ByteArrayAdapter$Deserializing.deserialize(ByteArrayAdapter.java:46) at org.whispersystems.textsecuregcm.util.ByteArrayAdapter$Deserializing.deserialize(ByteArrayAdapter.java:41) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151) at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:138) at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:288) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:151) at com.fasterxml.jackson.databind.ObjectMapper._readValue(ObjectMapper.java:4173) at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2467) at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:126) at io.dropwizard.configuration.BaseConfigurationFactory.build(BaseConfigurationFactory.java:88) at io.dropwizard.cli.ConfiguredCommand.parseConfiguration(ConfiguredCommand.java:126) at io.dropwizard.cli.ConfiguredCommand.run(ConfiguredCommand.java:74) at io.dropwizard.cli.Cli.run(Cli.java:78) at io.dropwizard.Application.run(Application.java:94) at org.whispersystems.textsecuregcm.WhisperServerService.main(WhisperServerService.java:406)


What is the error and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
mayton2019, 2021-02-19
@mayton2019

Speaking the language of facts, in Base64 encoding you cannot use the character "_", but you can only use the letter A to the character "/" in the ASCII range. Where and how the underscore appeared is not clear.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question