Giter VIP home page Giter VIP logo

Comments (11)

javsanpar avatar javsanpar commented on July 1, 2024 2

I can not reproduce your problem.

Can you run storytel-tui this way and attach the file stderr.txt? RUST_BACKTRACE=1 cargo run 2> /tmp/stderr.txt

from storytel-tui.

javsanpar avatar javsanpar commented on July 1, 2024 1

Hello!

Let me check if I can reproduce your problem.

from storytel-tui.

javsanpar avatar javsanpar commented on July 1, 2024 1

sry about the late reply, busy with work

No problem!

I get the same backtrace if I write my email or password wrong on purpose. If we suppose that you write your email and password correctly, then the bug could be storytel-tui not handling correctly some special characters.

I am going to change my password to add more special characters and see if I can reproduce your problem.

from storytel-tui.

javsanpar avatar javsanpar commented on July 1, 2024 1

Thank you for trying it. I also failed to reproduce the problem using more complex passwords.

What Storytel plan are you using? An unlimited plan or a plan with some kind limitation?

From which country are you trying to use it? If you don't mind to say it.

from storytel-tui.

bijumon avatar bijumon commented on July 1, 2024 1

yeah! how do I?

update: Ok, found the site, reading through docs. gimme a few days. ty

from storytel-tui.

javsanpar avatar javsanpar commented on July 1, 2024 1

I applied a patch to the project and I think it should fix the problem you had. If you want you can try it again!

from storytel-tui.

bijumon avatar bijumon commented on July 1, 2024 1

I applied a patch to the project and I think it should fix the problem you had. If you want you can try it again!

works, thank you.

ps: never did get get around to learning mitmproxy, sry :( life after pandemic happened

from storytel-tui.

bijumon avatar bijumon commented on July 1, 2024

sry about the late reply, busy with work

# RUST_BACKTRACE=1 cargo run 2> /tmp/stderr.txt
   Compiling autocfg v1.0.1
   Compiling libc v0.2.79
   Compiling cfg-if v0.1.10
   Compiling proc-macro2 v1.0.24
   Compiling unicode-xid v0.2.1
   Compiling syn v1.0.46
   Compiling log v0.4.11
   Compiling fnv v1.0.7
   Compiling lazy_static v1.4.0
   Compiling slab v0.4.2
   Compiling memchr v2.3.3
   Compiling pkg-config v0.3.19
   Compiling cc v1.0.61
   Compiling bitflags v1.2.1
   Compiling bytes v0.5.6
   Compiling futures-core v0.3.6
   Compiling itoa v0.4.6
   Compiling pin-project-internal v0.4.27
   Compiling pin-project-lite v0.1.11
   Compiling version_check v0.9.2
   Compiling getrandom v0.2.0
   Compiling once_cell v1.4.1
   Compiling openssl v0.10.30
   Compiling serde_derive v1.0.117
   Compiling foreign-types-shared v0.1.1
   Compiling strsim v0.9.3
   Compiling ident_case v1.0.1
   Compiling pin-utils v0.1.0
   Compiling futures-io v0.3.6
   Compiling serde v1.0.117
   Compiling futures-sink v0.3.6
   Compiling rustc-serialize v0.3.24
   Compiling tinyvec v0.3.4
   Compiling native-tls v0.2.4
   Compiling httparse v1.3.4
   Compiling hashbrown v0.9.1
   Compiling matches v0.1.8
   Compiling arc-swap v0.4.7
   Compiling ryu v1.0.5
   Compiling try-lock v0.2.3
   Compiling maybe-uninit v2.0.0
   Compiling proc-macro-hack v0.5.18
   Compiling scopeguard v1.1.0
   Compiling openssl-probe v0.1.2
   Compiling smallvec v1.4.2
   Compiling httpdate v0.3.2
   Compiling tower-service v0.3.0
   Compiling encoding_rs v0.8.24
   Compiling serde_json v1.0.59
   Compiling percent-encoding v2.1.0
   Compiling dtoa v0.4.6
   Compiling mime v0.3.16
   Compiling stable_deref_trait v1.2.0
   Compiling array-macro v1.0.5
   Compiling ipnet v2.3.0
   Compiling xi-unicode v0.2.1
   Compiling unicode-width v0.1.8
   Compiling base64 v0.12.3
   Compiling unicode-segmentation v1.6.0
   Compiling num-traits v0.2.12
   Compiling num-integer v0.1.43
   Compiling num-iter v0.1.41
   Compiling indexmap v1.6.0
   Compiling crossbeam-utils v0.7.2
   Compiling num-complex v0.2.4
   Compiling num-rational v0.2.4
   Compiling tracing-core v0.1.17
   Compiling futures-channel v0.3.6
   Compiling http v0.2.1
   Compiling futures-task v0.3.6
   Compiling unicase v2.6.0
   Compiling foreign-types v0.3.2
   Compiling openssl-sys v0.9.58
   Compiling unicode-normalization v0.1.13
   Compiling unicode-bidi v0.3.4
   Compiling lock_api v0.3.4
   Compiling owning_ref v0.4.1
   Compiling idna v0.2.0
   Compiling tracing v0.1.21
   Compiling want v0.3.0
   Compiling log v0.3.9
   Compiling http-body v0.3.1
   Compiling quote v1.0.7
   Compiling net2 v0.2.35
   Compiling iovec v0.1.4
   Compiling num_cpus v1.13.0
   Compiling rand v0.4.6
   Compiling socket2 v0.3.15
   Compiling parking_lot_core v0.7.2
   Compiling signal-hook-registry v1.2.1
   Compiling time v0.1.44
   Compiling url v2.1.1
   Compiling num-complex v0.1.43
   Compiling num-traits v0.1.43
   Compiling crossbeam-channel v0.4.4
   Compiling mio v0.6.22
   Compiling const-random-macro v0.1.11
   Compiling parking_lot v0.10.2
   Compiling mime_guess v2.0.3
   Compiling num-bigint v0.1.44
   Compiling chrono v0.4.19
   Compiling enum_primitive v0.1.1
   Compiling tokio v0.2.22
   Compiling signal-hook v0.1.16
   Compiling const-random v0.1.11
   Compiling num v0.2.1
   Compiling num-rational v0.1.42
   Compiling crossterm v0.14.2
   Compiling darling_core v0.10.2
   Compiling ahash v0.2.19
   Compiling num v0.1.42
   Compiling tokio-util v0.3.1
   Compiling tokio-tls v0.3.1
   Compiling mpv v0.2.3
   Compiling darling_macro v0.10.2
   Compiling enum-map-derive v0.4.5
   Compiling enum-map v0.6.3
   Compiling darling v0.10.2
   Compiling enumset_derive v0.4.4
   Compiling enumset v0.4.5
   Compiling pin-project v0.4.27
   Compiling futures-util v0.3.6
   Compiling cursive v0.14.1
   Compiling h2 v0.2.6
   Compiling serde_urlencoded v0.6.1
   Compiling hyper v0.13.8
   Compiling hyper-tls v0.4.3
   Compiling reqwest v0.10.8
   Compiling storytel-tui v0.1.0 (/home/user0/storytel-tui)
    Finished dev [unoptimized + debuginfo] target(s) in 54.33s
     Running `target/debug/storytel-tui`
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: Error("invalid type: null, expected a string", line: 1, column: 383) }', src/client_storytel_api.rs:68:66
stack backtrace:
   0: rust_begin_unwind
             at /build/rust/src/rustc-1.54.0-src/library/std/src/panicking.rs:515:5
   1: core::panicking::panic_fmt
             at /build/rust/src/rustc-1.54.0-src/library/core/src/panicking.rs:92:14
   2: core::result::unwrap_failed
             at /build/rust/src/rustc-1.54.0-src/library/core/src/result.rs:1355:5
   3: core::result::Result<T,E>::unwrap
             at /build/rust/src/rustc-1.54.0-src/library/core/src/result.rs:1037:23
   4: storytel_tui::client_storytel_api::login
             at ./src/client_storytel_api.rs:68:30
   5: storytel_tui::tui::show_check_login
             at ./src/tui.rs:72:9
   6: storytel_tui::tui::show_login::{{closure}}
             at ./src/tui.rs:105:13
   7: cursive::event::Callback::from_fn::{{closure}}
             at /home/user0/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive-0.14.1/src/event.rs:129:13
   8: <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call
             at /build/rust/src/rustc-1.54.0-src/library/alloc/src/boxed.rs:1589:9
   9: cursive::cursive::Cursive::on_event
             at /home/user0/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive-0.14.1/src/cursive.rs:807:52
  10: cursive::cursive::Cursive::process_events
             at /home/user0/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive-0.14.1/src/cursive.rs:924:13
  11: cursive::cursive::Cursive::step
             at /home/user0/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive-0.14.1/src/cursive.rs:897:34
  12: cursive::cursive::Cursive::run
             at /home/user0/.cargo/registry/src/github.com-1ecc6299db9ec823/cursive-0.14.1/src/cursive.rs:883:13
  13: storytel_tui::main
             at ./src/main.rs:32:5
  14: core::ops::function::FnOnce::call_once
             at /build/rust/src/rustc-1.54.0-src/library/core/src/ops/function.rs:227:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

ps: i wondered if it could be due to a custom bash config !? so I tried the command under pdksh, same result.

from storytel-tui.

bijumon avatar bijumon commented on July 1, 2024

sry about the late reply, busy with work

No problem!

I get the same backtrace if I write my email or password wrong on purpose. If we suppose that you write your email and password correctly, then the bug could be storytel-tui not handling correctly some special characters.

I changed my password to be only characters. no luck

I am going to change my password to add more special characters and see if I can reproduce your problem.

from storytel-tui.

bijumon avatar bijumon commented on July 1, 2024

Thank you for trying it. I also failed to reproduce the problem using more complex passwords.

What Storytel plan are you using? An unlimited plan or a plan with some kind limitation?

unlimited with 3 months sub, i dont think there is a limitation

From which country are you trying to use it? If you don't mind to say it.

India

ty for the followup

from storytel-tui.

javsanpar avatar javsanpar commented on July 1, 2024

Hi!

I have been thinking about your problem, and I suspect that Storytel India uses a different API than Storytel Spain.

I don't have an account with a contracted plan with Storytel India with which to study the API. Do you think you could make a capture with mitmproxy of the traffic generated by the Storytel application you have installed on your phone?

from storytel-tui.

Related Issues (9)

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.