Http Modue bug

3 posts, 0 answers
  1. suralal
    suralal avatar
    15 posts
    Member since:
    Mar 2016

    Posted 04 Jul Link to this post

    I am trying the nativescript http module (also fetch module) in android.

    My sever send different header infrmation, 5 of which ar Set-Cookie header

    The NativeSript Http module is losing 4/5 set-Cookie headers. Is there any workaround? 

  2. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    92 posts

    Posted 04 Jul Link to this post

    Hello Suralal,

    After a research on that matter, I have found out that this was documented issue discussed here and fixed with this commit so you should not be encountering this problem with the current NativeScript version.

    Have you tried to log your response (from "http" or "fetch" module) to ensure that the headers are lost!?
    Some of the users are suggesting specific workarounds in the discussion but if the problem persists at your side
     please send us as much information as you can including response logs (both from NativeScript app and from what it should be in an app like Postman) , your testing end-point (very important in order to be able to reproduce this specific behaviour) and the code you are using to receive the HTTP responses in your app.

    Regards,
    Nikolay Iliev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    92 posts

    Posted 04 Jul Link to this post

    Hi Suralal,

    We were able to reproduce this behaviour with our own server that sends multiple headers and indeed this appears to be a real issue. The bug is logged at this issue and you can track its development and fix.
    Once a bugfix is released the milestone will be updated for the NativeScript version which will include the fixed code.

    Regards,
    Nikolay Iliev
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top