Code Monkey home page Code Monkey logo

currency-converter's People

Contributors

posadskiy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

malex28 nagpals

currency-converter's Issues

Exchange rate update failed.

Service CurrencyConverterApi.Com has problem now. Exchange rate update failed. from CLP to SGD last successful update = 01 Jan 1970 00:00:00:000 +0000

'Nothing working services'

 Caused by: com.posadskiy.currencyconverter.exception.CurrencyConverterException: Nothing working services. Please, try later again. If problem stay, create a ticket on github.com/posadskiy/currency-converter

I get this error when try to use converter.rate() functions.

    val converter = CurrencyConverter(
        ConfigBuilder()
            .openExchangeRatesApiKey(CURRENCY_CONVERTER_API_API_KEY)
            .build()
    )

    val _rate: Double = converter.rate(Currency.USD, Currency.TRY)

    Log.i(TAG, "Rate is: ${_rate}")

I couldn't understand what about this error. Is library working still?

com.posadskiy.currencyconverter.service.CurrencyConvertService

am trying to use com.posadskiy.currencyconverter.service.CurrencyConvertService in android studio but am getting these error in logcat and the app is crushing.

i need a help please.

01-20 04:41:34.341 1563-1563/com.example.callister.callistroninventory D/OpenGLRenderer: Enabling debug mode 0
01-20 04:41:34.453 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:34.453 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:50.349 1563-1563/com.example.callister.callistroninventory W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
01-20 04:41:51.741 1563-1563/com.example.callister.callistroninventory I/dalvikvm: Could not find method java.io.BufferedReader.lines, referenced from method com.posadskiy.currencyconverter.service.CurrencyConvertService.getBufferReaderByUrl
01-20 04:41:51.745 1563-1563/com.example.callister.callistroninventory W/dalvikvm: VFY: unable to resolve virtual method 24929: Ljava/io/BufferedReader;.lines ()Ljava/util/stream/Stream;
01-20 04:41:51.745 1563-1563/com.example.callister.callistroninventory D/dalvikvm: VFY: replacing opcode 0x6e at 0x004c
01-20 04:41:51.837 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:51.837 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:51.949 1563-1563/com.example.callister.callistroninventory E/EGL_emulation: tid 1563: eglSurfaceAttrib(1210): error 0x3009 (EGL_BAD_MATCH)
01-20 04:41:51.949 1563-1563/com.example.callister.callistroninventory W/HardwareRenderer: Backbuffer cannot be preserved
01-20 04:41:56.869 1563-1563/com.example.callister.callistroninventory W/InputEventReceiver: Attempted to finish an input event but the input event receiver has already been disposed.
01-20 04:44:00.317 1563-1563/com.example.callister.callistroninventory D/AndroidRuntime: Shutting down VM
01-20 04:44:00.317 1563-1563/com.example.callister.callistroninventory W/dalvikvm: threadid=1: thread exiting with uncaught exception (group=0xa4d45b20)
01-20 04:44:00.333 1563-1563/com.example.callister.callistroninventory D/dalvikvm: GC_FOR_ALLOC freed 200K, 9% free 3359K/3680K, paused 11ms, total 11ms
01-20 04:44:00.337 1563-1563/com.example.callister.callistroninventory E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.example.callister.callistroninventory, PID: 1563
android.os.NetworkOnMainThreadException
at android.os.StrictMode$AndroidBlockGuardPolicy.onNetwork(StrictMode.java:1145)
at java.net.InetAddress.lookupHostByName(InetAddress.java:385)
at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
at java.net.InetAddress.getAllByName(InetAddress.java:214)
at com.android.okhttp.internal.Dns$1.getAllByName(Dns.java:28)
at com.android.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:216)
at com.android.okhttp.internal.http.RouteSelector.next(RouteSelector.java:122)
at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:292)
at com.android.okhttp.internal.http.HttpEngine.sendSocketRequest(HttpEngine.java:255)
at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:206)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:345)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:296)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:503)
at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:136)
at com.posadskiy.currencyconverter.service.CurrencyConvertService.getBufferReaderByUrl(CurrencyConvertService.java:38)
at com.posadskiy.currencyconverter.service.CurrencyConvertService.rate(CurrencyConvertService.java:16)
at com.posadskiy.currencyconverter.CurrencyConverter.rate(CurrencyConverter.java:325)
at com.example.callister.callistroninventory.CompleteActivity$2.onClick(CompleteActivity.java:94)
at android.view.View.performClick(View.java:4438)
at android.view.View$PerformClick.run(View.java:18422)
at android.os.Handler.handleCallback(Handler.java:733)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:136)
at android.app.ActivityThread.main(ActivityThread.java:5001)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:515)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:785)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:601)
at dalvik.system.NativeStart.main(Native Method)

Bugs in the service

Good afternoon.

I wanted to use your library, but I found some problems:

  1. The guide omits "new" before ConfigBuilder().

image

  1. In the CurrencyConvertService class, the argument config.getOpenExchangeRatesApiKey() is mixed up in line 25.

image

  1. I wanted to use the first to work. When requesting the first service, this error appears. I have Internet access, but I couldn't figure out what the problem was.

image

Thank you in advance for your answer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.