You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A new symbol is added as 'JNJ$', that's why RestManager.java now throws IllegalArgumentException
To Reproduce
Steps to reproduce the behavior:
Request for key stats (as an example, the others also have the same problem) with the symbol 'JNJ$'
IllegalArgumentException will be thrown afterward from RestManager.java
Expected behavior
IllegalArgumentException won't be thrown and the response will be parsed successfully
Additional context
Caused by: java.lang.IllegalArgumentException: Illegal group reference: group index is missing
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.replaceFirst(Unknown Source)
at java.base/java.lang.String.replaceFirst(Unknown Source)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.createPath(RestManager.java:94)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.createURL(RestManager.java:73)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.executeRequest(RestManager.java:30)
at pl.zankowski.iextrading4j.client.rest.AbstractRestEndpoint.execute(AbstractRestEndpoint.java:16)
at pl.zankowski.iextrading4j.client.rest.endpoint.GenericRestEndpoint.executeRequest(GenericRestEndpoint.java:14)
The text was updated successfully, but these errors were encountered:
adilkaraoz
changed the title
Illegala argument exception thrown if the symbol has '$' symbol
Illegal argument exception thrown if the symbol has '$' symbol
Aug 21, 2023
Describe the bug
A new symbol is added as 'JNJ$', that's why RestManager.java now throws IllegalArgumentException
To Reproduce
Steps to reproduce the behavior:
Expected behavior
IllegalArgumentException won't be thrown and the response will be parsed successfully
Additional context
Caused by: java.lang.IllegalArgumentException: Illegal group reference: group index is missing
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.appendReplacement(Unknown Source)
at java.base/java.util.regex.Matcher.replaceFirst(Unknown Source)
at java.base/java.lang.String.replaceFirst(Unknown Source)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.createPath(RestManager.java:94)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.createURL(RestManager.java:73)
at pl.zankowski.iextrading4j.client.rest.manager.RestManager.executeRequest(RestManager.java:30)
at pl.zankowski.iextrading4j.client.rest.AbstractRestEndpoint.execute(AbstractRestEndpoint.java:16)
at pl.zankowski.iextrading4j.client.rest.endpoint.GenericRestEndpoint.executeRequest(GenericRestEndpoint.java:14)
The text was updated successfully, but these errors were encountered: