I'm trying to fetch data from the server by using HTTP request so I read the flutter document to know how to do that I follow this article to do it
when I ran the app only the CircularProgressIndicator are working there are no data on the screen
anyone can tell me why
i solve it by changing
future : post
to
future: FuturePost()
Related
I'm trying to upload a video using the API. I can successfully authenticate, upload and create a video and receive a video id. But when I query the processing status using https://api.dailymotion.com/video/{VideoId}?fields=status%2Ctitle%2Cpublishing_progress URL, it keeps returning "publishing_progress": 7 no matter how long I wait.
If I try to upload the same video using the website directly it will process it just fine.
I wonder if anyone else has encountered this issue and know how to solve it.
I think there is an issue with the source URL you associated to the video.
Have you correctly filled the URL field at the video creation (STEP 4.) with the URL returned by the API when you uploaded your video (on STEP 3.)?
If so, you would encourage you to contact our support with more details to dig further into possible issues
I have refreshed again and again but it does not work. I also tried to log Out and then log in again but all in vain plz help.
firebaser here
Steps to try:
Check if there are any relevant messages on the JavaScript console of your browser.
Disable all extensions in your browser and try again.
Try in an incognito window.
Try in a different browser.
Try on a different network.
If none of these work, reach out to Firebase support for personalized help in troubleshooting.
Issue with downloading Apple Pass on an iPhone device using Chrome and Firefox. It works fine on Safari. On Chrome for iOS it says:
Sorry, your Pass cannot be installed to Passbook at this time.
For Firefox it says:
Failed to Add Pass An error occurred while adding the pass to Wallet. Please try again later.
I tried just downloading the Apple Pass from a desktop browser and it downloads and I can install it fine on an iPhone/simulator which I'm assuming is not a problem with the pass itself but maybe rather something I'm missing in the response.
Here is the code I'm using to return the Apple Pass.
private void ReturnResponse(byte[] applePass)
{
Response.Clear();
Response.AddHeader("content-disposition", string.Formate("attachment; filename={0}", "sample.pkpass"));
Response.ContentType = "application/vnd.apple.pkpass"
Response.BinaryWrite(applePass);
Response.End();
}
Expected result:
Apple Pass opens and allows the user to add it to their Apple Wallet.
I realise this is question is over a year and a half old, but this is still an issue as of March 2021. After a lot of trial and error we managed to get it working on Chrome & Firefox. Our specific issue was that the request has to be a GET, and we had a form before the Pass was downloaded that submitted as a POST. Once we change the form to submit a GET the issue was resolved.
We tried to keep the POST and return a 201, which feels correct, but the issue persisted.
Changing our request method from a POST to a GET when serving the pkpass made it possible to download the pass using Google Chrome for Mobile on an iOS device.
This is untested, but I have found this link which I feel might be related:
https://github.com/eymengunay/php-passbook/issues/73
It says that the anchor you using to link to the pass should contain the this attribute:
target="_system"
I have not tested this resolution myself.
I just bought 20 access passes from a website. The site had the option to "add to apple wallet". It worked fine for 19 of them and then on the very last one I got this same error.
I did not do anything different when trying to add the 20th one.
Wondering if there is a limitation with the number of passes you can add?... but why would it be limited to a random number like 19?
I am using the URL
http://itunes.apple.com/lookup?bundleId=com.myCompany.myApp
to get a JSON file with the information about my app. This works if the app is already published on the App Store but I am still developing it and the result coming from that URL contains just this:
{
"resultCount":0,
"results": []
}
I have tried to use
http://sandbox.itunes.apple.com/lookup?bundleId=com.myCompany.myApp
and
https://sandbox.itunes.apple.com/lookup?bundleId=com.myCompany.myApp
and I receive
Http/1.1 Service Unavailable
Any ideas?
It's not possible to do that. I'd suggest using another way to get the data you need or mocking the response you expect while the app isn't available and forward the request to Apple as soon as data is available.
I am supposed to create a simple chat app using httppost and get in order to send message and to get message.
This is what I am supposed to get after sending the request to the API:
{"conversation":
{"id":35,"created_at":"2014-11-16T19:21:11.000+01:00",
"updated_at":"2014-11-16T19:21:11.000+01:00",
"conversation_type":null,"option_id":null,
"messages":[
{"body":"lol","created_at":"2014-11-16T19:21:13.000+01:00","user_id":34},
{"body":"payday","created_at":"2014-11-16T19:25:57.000+01:00","user_id":34},
{"body":"lol","created_at":"2014-11-16T20:19:26.000+01:00","user_id":34},
{"body":"izi","created_at":"2014-11-17T01:09:36.000+01:00","user_id":34},
{"body":"LOWL","created_at":"2014-11-17T01:11:34.000+01:00","user_id":34}
],
"users":[
{"id":34,"email":"zegfault42#gmail.com","first_name":"Hugo","name":"Barbier"},
{"id":36,"email":"ismael.bourg#gmail.com","first_name":"Ismael","name":"Bourg"}
]
}
}
And I am supposed to make a post request in order to reply message. I just want to know what I can do and how I can design it.
Please read more about HTTP Post & Get methods, REST services.
It is very simple. You can find it on the internet.
Also, I had similar questions when I started developing.
Check the answer to my question here-
Request & Response Windows Phone
Hope this helps