Skip to content

JDBC URL matches jdbc:tc: prefix but the database or tag name could not be identified #3931

@yerzhant

Description

@yerzhant

When I'm using a private image as per https://www.testcontainers.org/features/image_name_substitution/#manual-substitution
like this jdbc:tc:domain.com/my-image:1.0.0:///testdb I'm getting the string parsing error:

Caused by: java.lang.IllegalArgumentException: JDBC URL matches jdbc:tc: prefix but the database or tag name could not be identified
	at org.testcontainers.jdbc.ConnectionUrl.parseUrl(ConnectionUrl.java:97)
	at org.testcontainers.jdbc.ConnectionUrl.newInstance(ConnectionUrl.java:67)
	at org.testcontainers.jdbc.ContainerDatabaseDriver.connect(ContainerDatabaseDriver.java:73)
	at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:121)
	at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
	at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
	at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
	at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
	... 108 more

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions