Image from URL not showing initially in radlistview

3 posts, 0 answers
  1. Anurag
    Anurag avatar
    27 posts
    Member since:
    Apr 2016

    Posted 07 Sep Link to this post

    Hi 

    I am using the nativescript radlistview for a nativescript angular project and am facing issues in displaying some images correctly.

    To populate the listview I enter the letter 'a' in a search bar and click on the search icon. This triggers a search through the itemservice. In my component I am subscribing to the results returned by the service. 

    I am experiencing 2 problems:

    Problem 1.

    When I run a search most of the content displays correctly but the  couple of images that are part of the first 2 objects returned  "NEVER" show correctly at the beginning.

    Problem 2.

    Sometimes if I scroll down the radlistview and then return to the top these images show up at that time, but this does not always happen. sometimes on scrolling up and down images that were earlier visible disappear and are not visible even if i stop scrolling.

    Also in my console I see an error as follows

    ERROR Error: Uncaught (in promise): Error: Response content may not be converted to an Image
        file:///app/tns_modules/tns-core-modules/http/http-request/http-request.js:124:61 [<root>]

     

    I have created a sample project to show this behavior. I am attaching to this request for help. Please let me know what I need to do differently. Thank you.

    Link to project on github.

     

     

  2. Anurag
    Anurag avatar
    27 posts
    Member since:
    Apr 2016

    Posted 07 Sep Link to this post

    Please use this github repo instead of the one posted in the initial request.
  3. Nikolay Iliev
    Admin
    Nikolay Iliev avatar
    294 posts

    Posted 08 Sep Link to this post

    Hello Anurag,

    Thank you for the provided project. I have investigated the issue and it seems that it is related to getting an incorrect response when making GET requests on iOS with specific headers. Our development team is investigating the issue which is logged here. Plese stay in touch and keep track on the logged issue for possible workarounds and upcoming fixes (all related information will be posted in the linked issue).

    As a side note, I've noticed that the API sometimes returns non-existing links which might also cause undesired behavior (e.g. https://www.googleapis.com/download/storage/v1/b/quest-a4d78.appspot.com/o/QImages%2FC8AE1C736FD54572AFDDDBDF31A5E0EB.png?generation=1498201819132848&alt=media) points to a non-existing file.

    Once again, we are sorry for any inconvenience caused by this issue - our development team will investigate and post related information as soon as we have more detailed information.
    As appreciation for the found bug, I am awarding your Telerik points

    Regards,
    Nikolay Iliev
    Progress Telerik
    Did you know that you can open private support tickets which are reviewed and answered within 24h by the same team who built the components? This is available in our UI for NativeScript Pro + Support offering.
Back to Top