{"record":{"id":"d7ccb2d4662c3fe8","repo":"apache/druid","slug":"error-on-uri","errorCode":null,"errorMessage":"error on uri","messagePattern":"error on uri","errorType":"exception","errorClass":"IllegalArgumentException","httpStatus":null,"severity":"error","filePath":"extensions-contrib/rabbit-stream-indexing-service/src/main/java/org/apache/druid/indexing/rabbitstream/RabbitStreamRecordSupplier.java","lineNumber":467,"sourceCode":"        parameters.port(parsedURI.getPort());\n      }\n\n      if (this.password != null) {\n        parameters.password(password);\n      }\n\n      if (this.username != null) {\n        parameters.username(username);\n      }\n\n      Client client = getClient(parameters);\n\n      List<String> partitions = client.partitions(stream);\n      client.close();\n      return new HashSet<>(partitions);\n    }\n    catch (URISyntaxException e) {\n      throw new IllegalArgumentException(\"error on uri\" + uri);\n    }\n    catch (Exception e) {\n      throw e;\n    }\n  }\n\n  @Override\n  public void close()\n  {\n    if (closed) {\n      return;\n    }\n    this.stopBackgroundFetch();\n    closed = true;\n  }\n}\n","sourceCodeStart":449,"sourceCodeEnd":484,"githubUrl":"https://github.com/apache/druid/blob/9b90983fd291f26935af934383ce360473179e4d/extensions-contrib/rabbit-stream-indexing-service/src/main/java/org/apache/druid/indexing/rabbitstream/RabbitStreamRecordSupplier.java#L449-L484","documentation":"RabbitStreamRecordSupplier.getPartitionIds failed to parse the configured stream URI: the URI string raised a URISyntaxException when connection parameters were extracted. The malformed URI (bad scheme, illegal characters, missing host, etc.) is rethrown as an IllegalArgumentException so the caller cannot proceed with an unusable stream location.","triggerScenarios":"Thrown at extensions-contrib/rabbit-stream-indexing-service/src/main/java/org/apache/druid/indexing/rabbitstream/RabbitStreamRecordSupplier.java:467 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the wrapped URISyntaxException message for the exact parse failure and error index.","Verify the stream URI in the ingestion spec follows the expected rabbitmq stream format (scheme://host:port/stream) with URL-escaped special characters.","Remove stray whitespace or quotes from the configured URI.","Test the URI with a standalone RabbitMQ stream client before restarting the task."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"9b90983fd291f26935af934383ce360473179e4d","analyzedAt":"2026-09-07T13:32:30.957Z","contentChangedAt":"2026-09-07T13:32:30.957Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}