Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BitZ: getTicker return error #4142

Open
Aento opened this issue Jun 27, 2021 · 1 comment
Open

BitZ: getTicker return error #4142

Aento opened this issue Jun 27, 2021 · 1 comment

Comments

@Aento
Copy link

Aento commented Jun 27, 2021

Firs of all sslUri is wrong need to update it to "https://apiv2.bitz.com".

When try to getTicker I get this error:

si.mazi.rescu.HttpStatusIOException: Cannot coerce empty String ("") to org.knowm.xchange.bitz.dto.marketdata.BitZTickervalue (but could if coercion was enabled usingCoercionConfig) at [Source: (String)"{"status":-107,"msg":"","data":"","time":1624779684,"microtime":"0.11429400 1624779684","source":"api"}"; line: 1, column: 32] (through reference chain: org.knowm.xchange.bitz.dto.marketdata.result.BitZTickerResult["data"]) at si.mazi.rescu.ResponseReader.read(ResponseReader.java:104) at si.mazi.rescu.RestInvocationHandler.mapInvocationResult(RestInvocationHandler.java:169) at si.mazi.rescu.RestInvocationHandler.receiveAndMap(RestInvocationHandler.java:157) at si.mazi.rescu.RestInvocationHandler.invoke(RestInvocationHandler.java:113) at org.knowm.xchange.examples.interceptor.LoggingInterceptor.aroundInvoke(LoggingInterceptor.java:16) at si.mazi.rescu.InterceptedInvocationHandler.invoke(InterceptedInvocationHandler.java:42) at com.sun.proxy.$Proxy35.getTickerResult(Unknown Source) at org.knowm.xchange.bitz.service.BitZMarketDataServiceRaw.getBitZTicker(BitZMarketDataServiceRaw.java:33) at exchages.BitzManager.getCryptoPairPrice(BitzManager.java:45) at CryptoCurrency.Stellar$Task.run(Stellar.java:84) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:834)

@walec51
Copy link
Collaborator

walec51 commented Jul 11, 2021

feel free to submit a PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants