Hi, im doing some http request that works perfect on Fuse preview and in Android devices, but in iOS, when i do the same request (and almost any request) the event Error is trigered along side with the Done request.
In IOS in the previous version of Fuse this work fine!
So, i trigger the request, it loads everything and then the function linked to Error is triggered.
im using Error as a “No Conection” error, i know that i should be using Timeout, but that doesnt work neither.
Hi, thanks for your bug report! The Http package saw a rewrite on both iOS and Android, so it’s likely that some new issues were introduced. If I understand correctly, you are seeing both Done and Error firing for the same request – Is this right?
Can you modify the example so it reproduces the issue you are seeing? I want to get a better understanding of the conditions under which the issue triggers.
Yes, I am seeing both Done and Error firing for the same request. Or sometimes only error. The problem only happens on iPhone, and the requests involved in this problem are requests to parse.com. this problem only appeared on the newest version of Fuse, on the old one worked fine (using Experimental.Net).
My app does http request to 2 different servers using REST API, one is parse.com and the other is themoviedb.org, the problem is only when it make a request to parse.com.
I dug a little bit more and found a leak and a potential memory corruption bug, which I’ll fix, but I’m not sure this would consistently cause the issue you are seeing. I’ll leave you with a few questions for now.
Does the issue surface if you only make requests to parse.com?
How much data is being transferred or do you expect to be transferred per request?
Do you keep references to requests you send? And, if so, do you access the response’s content string outside the event handlers? (Doing this would currently make you vulnerable to the memory corruption issue I found on iOS)
Any other information you can share about the requests and feel is relevant in this case?
Q.-Does the issue surface if you only make requests to parse.com? A.-Only with parse.com and only on iOS.
Q.-How much data is being transferred or do you expect to be transferred per request? A.-Im only requesting some data from the database, the biggest request is like 16 vars and one of it is an array of strings that for now contain only 2 strings, that and i have a limit of 3.
Q.-Do you keep references to requests you send? And, if so, do you access the response’s content string outside the event handlers? (Doing this would currently make you vulnerable to the memory corruption issue I found on iOS) A.- i have all the vars on the void. this is the request:
Code not displaying correctly, ill repost it
what that does is get all the data from the database, add it to a new list and send the data to another class to append it to one stackpanel to dsplay the list. Everytime it is called, the stackpanel is cleared
Ok, the search that didn’t work on android is fixed, the problem was that i was doing a request to a link with an space in a value, i changed the space with “%20” and now it works.
It was a search for users based on their full name, obviusly with a space between first and last name
The error in iOS is that the error function in “HttpMessageHandler.Error” is always triggered even when the http request it has succefully finished.
i think there is no url encode un Fuse or is not in the documentation, but i dont need it cos im encoding it manually, how is that? I’m adding all the parameters directly to the url of the request like this