is there a way i can fix my api request issue - flutter

I did this but the (endPointUrl) after await get, is showing error, and having being have lot of issue, in which any url I use never responds always showing failed to locate localhost
enter code here

Related

W5100S-EVB-Pico is not connecting with server other than http://httpbin.org

I have purchased W5100S-EVB-Pico to send data over airtable. I write down python script and configured network by following this link.
https://github.com/Wiznet/RP2040-HAT-MicroPython/tree/main/examples/HTTP/HTTP_Client
When I try to make request on http://httpbin.org/ either get or post as mentioned in above link, its worked and response I get fine.
But If I use same code to connect any other server either get or post nothing happened. It keeps sending data but no response from server. And it keeps busy.
Can please someone help me where I am making mistake.
URL I'm trying to send data are working fine, if I open it that url in browser it worked fine but when used it in W5100S-EVB-Pico no response.
I followed exactly same step same in above link.

isomorphic-unfetch 302 response working slow in IE11

I am using next.js and I need to send an AJAX request (I am using isomorphic-unfetch). Some cases the response is with 302 HTTP status code and I need to redirect to the URL that comes in response. For redirecting, I have tried with Router.push(url) and window.location.href=url due is a client redirection.
The problem is that in IE11 appears the error (other browsers works well)
The redirection is done but it takes about 10 seconds. I was googling and found this SCRIPT7002: XMLHttpRequest: Network Error 0x2ef3, Could not complete the operation due to error 00002ef3 that describe a bit my problem but none of the proposed solutions fixed my problem.
Other posts suggest changing the status response but I have no control to the requested endpoint so I can't change anything.
Any ideas on how to solve this?

getting redirect uri mismatch error in google plus despite having no uri mismatch

Please consider the following two websites that I am pinging as shown in the image below:
I have a google plus login icon where a user can click on it and can sign in using his/her google account.
My website where all the login code is residing is say for example xyztesting.com as shown in the image. And all the code related to xyztesting.com resides on the box 10.11.10.12 which has a domain name abctesting.com.
So, when i ping abctesting.com, I get Packets Sent and Received = 4 as shown in the image.
However, when I ping xyztesting.com , I get Request timed out as shown in the image below.
Does anyone knows whether this could be the reason behind why I am getting Redirect URI Mismatch error 400 error whenever a user tries to log in using google plus ?
I have ensured that the REDIRECt URI in the request matches the Registered Redirect URIs which is the most common message displayed when some one encounters this error and this is the most common fix suggested online everywhere.
I have referred to lot of previous related posts, including this one where they talks about making sure that the request URI's should match the registered URI on google developer console.
I have got a feeling that since there is not a dedicated box/server for my website xyztesting.com, google is thowing such error. Please let me know if anyone has experienced such type of error with the situation I have described above?
Sometimes, the redirect uri should be set to "postmessage" not the actual uri.
The documentation is not so clear on that setting.
-Dragonfire

HTTP/1.0 400 Bad Request

My question is simple: How do i hide the warning message below so that users don't see it? It appears at the top of my site from time to time.
Warning: file_get_contents(https://graph.facebook.com/oauth/access_token?client_id=*****************&redirect_uri=&client_secret=******&code=*************************************************************************************) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request in /home/content/**/*******/php/facebook/facebook-login.php on line 17
I am not worried about the warning as it doesn't seem to affect the functionality of my site and it only happens because the facebook token has expired.
I have tried for hours to resolve it properly by auto-renewing the expired token but had no luck.
Well, if you only need to hide it, you can go to the php file (/home/content//***/php/facebook/facebook-login.php) and add the # to line 17 to supress any errors from that function call. See: http://php.net/manual/en/language.operators.errorcontrol.php
Please consider the warning there, too.
Also be advised, that proper error handling with supressing (but logging) errors for the user and showing them if you visit your site as admin will be even better.

Tab Page Error: The requested method GET is not allowed

I have just set up a custom tab on my page for the first time. I have thoroughly followed the setup guide and seem to have everything on the Facebook side setup correctly.
However when I view my page it throws the following error:
Method Not Allowed The requested method GET is not allowed for the
URL /Facebook/index.html. Additionally, a 404 Not Found error was
encountered while trying to use an ErrorDocument to handle the
request. Apache/1.3.41 Server at feebnaturals.com.au Port 80
I believe it may be some kind of Apache server config issue, however I'm not that Apache savvy, so not sure where to start.
I had the same problem, but instead of GET, it was POST method which was not allowed. This is a setting on your server. Not server savvy myself, but it seems that my provider didn't allow this method on html-page, but makes no problem on doing the same for php-pages. So all I did was rename my page from .html to .php, updated the app settings in facebook and all works fine now.
This is definitely an error on your side, check your server logs and see what they say - it looks like you've configured the page to only work via a POST request and it's being requested in a GET request