wjmmjr opened a new issue, #9044:
URL: https://github.com/apache/seatunnel/issues/9044

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/seatunnel/issues?q=is%3Aissue+label%3A%22bug%22)
 and found no similar issues.
   
   
   ### What happened
   
   MongoDb uri 账户或密码含有%,访问mongodb服务会失败,%转译成%25也不行
   
   ### SeaTunnel Version
   
   2.3.9
   
   ### SeaTunnel Config
   
   ```conf
   source {
     MongoDB {
       uri = "mongodb://datauser:DTEU%F4kLTxxx@69.230.245.117:27017"
       database = "db_rp_resources"
       collection = "c_common_tag"
       schema = {
         fields {
           "_id": string,
           "_class": string,
           "createTime": string,
           "deleted": boolean,
           "description": string,
           "parentId": string,
           "sort": int,
           "tagName": string,
           "tagType": int,
           "updateBy": int,
           "updateTime": string
         }
       }
     }
   }
   ```
   
   ### Running Command
   
   ```shell
   flink session
   ```
   
   ### Error Exception
   
   ```log
   Caused by: com.mongodb.MongoCommandException: Command failed with error 18: 
'Authentication failed.' on server 69.230.245.117:27017. The full response is 
{"ok": 0, "errmsg": "Authentication failed.", "code": 18, "operationTime": 
{"$timestamp": {"t": 1742803169, "i": 1}}}
                at 
com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:198)
                at 
com.mongodb.internal.connection.InternalStreamConnection.receiveCommandMessageResponse(InternalStreamConnection.java:413)
                at 
com.mongodb.internal.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:337)
                at 
com.mongodb.internal.connection.CommandHelper.sendAndReceive(CommandHelper.java:101)
                at 
com.mongodb.internal.connection.CommandHelper.executeCommand(CommandHelper.java:45)
                at 
com.mongodb.internal.connection.SaslAuthenticator.sendSaslContinue(SaslAuthenticator.java:234)
                at 
com.mongodb.internal.connection.SaslAuthenticator.access$200(SaslAuthenticator.java:49)
                at 
com.mongodb.internal.connection.SaslAuthenticator$1.run(SaslAuthenticator.java:77)
                ... 45 more
   ```
   
   ### Zeta or Flink or Spark Version
   
   _No response_
   
   ### Java or Scala Version
   
   _No response_
   
   ### Screenshots
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@seatunnel.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to