HTTP request failed, statusCode: 404 in flutter when load from local image - flutter

My Flutter app does not read photos from Local and gives me a 404 error
this is my eroor:
HTTP request failed, statusCode: 404, http://192.168.1.105/flutter_app3Images/dark.jpg
this is my code:

It was my problem:
I instead:
Image.asset(proudocts[index].img_url),
I wrote:
Image.network()"http://192.168.1.105/flutter_app3"+proudocts[index].img_url),

Related

Got a 400 error in GitHub page and it's completely blank

I've tried to get my GitHub Pages up, but it's completely blank in my page, and the console errors were almost all about 400.
I've tried to change the homepage URL, but didn't work. Not sure what causes this.
My github page: https://shilibrad.github.io/monsters-rolodex/
https://github.com/shilibrad/monsters-rolodex
Errors:
Failed to load resource: the server responded with a status of 400 ()
2.8f03cf10.chunk.js:1
Failed to load resource: the server responded with a status of 400 ()
main.dd5c26f6.chunk.js:1
Failed to load resource: the server responded with a status of 400 ()
2.8f03cf10.chunk.js:1
Failed to load resource: the server responded with a status of 400 ()
main.dd5c26f6.chunk.js:1
Failed to load resource: the server responded with a status of 400 ()
shilibrad.github.io/monsters-rolodex/%PUBLIC_URL%/favicon.ico:1 Failed to load resource: the server responded with a status of 400 ()
manifest.json:1
Failed to load resource: the server responded with a status of 400 ()
manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.
main.7444030a.chunk.css:1
Failed to load resource: the server responded with a status of 400 ()
Check if the issue persists:
there was a recent incident
the GitHub pages just had a feature rollout: "Build and deploy GitHub Pages from any branch "
Both might influences how the HTTP request is perceived by the GitHub server.
Make sure you have
configured a publication branch.
an index.html file to be read by default
As seen in the latest OP's commit, the paths were incorrect:
/monster-rolodex/...
# instead of
/monsters-rolodex/

Getting status 403 with HttpUrlConnection but 200 with HttpsUrlConnection

I am trying to get response code for site "https://www.applefcu.org/".
When I run the code with "HttpUrlConnection", I am getting status code as 403, but when I run the code with "HttpsUrlConnection", it gives status 200.
What can be the reason for this?
and how do I identify when to run this code with "HttpUrlConnection" and when with "HttpsUrlConnection"?
The info is right there in the address. If the URL says https:// use HttpsUrlConnection

Why can't I wget from this address?

I'm trying to wget from the "Download Now" link on this website but it returns the following error:
$wget https://www.spigotmc.org/resources/supervanish.1331/download?version=46330
--2015-09-27 19:13:53-- https://www.spigotmc.org/resources/supervanish.1331/download?version=46330
Resolving www.spigotmc.org (www.spigotmc.org)... 198.41.204.94, 198.41.205.94, 2400:cb00:2048:1::c629:cd5e, ...
Connecting to www.spigotmc.org (www.spigotmc.org)|198.41.204.94|:443... connected.
HTTP request sent, awaiting response... 503 Service Temporarily Unavailable
2015-09-27 19:13:53 ERROR 503: Service Temporarily Unavailable.
Here is the page:
https://www.spigotmc.org/resources/supervanish.1331
Here is the URL:
https://www.spigotmc.org/resources/supervanish.1331/download?version=46330
You cannot wget because the server returns an error.
If you want to retrieve an error page, perhaps this page will help you.

Dropbox API returning http 500 status instead of http 400 status for a non-existant user in a team

Starting at around 21:00 PM GMT today , when we query for a user which doesn't exist in dropbox team, we are receiving an http 500 status with internal error message. In comparison earlier we use to receive http 400 message with message that user doesn't exist in team.
Has something regressed at dropbox end, or is this change intentional and hence we should consider http 500 internal error as equivalent to user not found?
For example RESPONSE#1 is what we expected as valid behavior , while RESPONSE#2 is what we are receiving currently
RESPONSE#1
Resource: https://api.dropbox.com/1/idm/get_profile?email=dummy#authentication.test
Operation: GET
Headers: Authorization: Bearer XXX
Content Type:
Data:
%% Time: 08/28/2014 17:06:51 GMT
Message: The remote server returned an error: (400) Bad Request. Web Response: {"error": "User not on this team"} ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
RESPONSE#2
Resource: https://api.dropbox.com/1/idm/get_profile?email=dummy#authentication.test
Operation: GET
Headers: Authorization: Bearer XXX
Content Type:
Data:
Time: 08/28/2014 22:40:29
(500) Internal Server Error. Web Response: {"error": "Internal Server Error"} ---> System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
Thanks
Somesh

How to make https request from google app engine(python 2.7) to facebook graph api?

profile=urllib2.urlopen("https://www.graph.facebook.com/v2.0/me?access_token="+access_token)
In this code error=
'An error occured while connecting to the server: %s' % e) error: An
error occured while connecting to the server: DNS lookup failed for
URL:
https://www.graph.facebook.com/v2.0/me?access_token=CAACEdEose0cBALIUnSI0kzOCoom0ole1kGNsPsZA9lSaxZAxOz56wHJTUhoG1a3zC7kRH3BrWcL5XtZAjzrUCVesgE6tqOOiAzMeS2JGEtcL51pgQJ697n96YogVE9wVhoiGs9uN40Y7XDRRM60ZCYHC1gJF9I6stTDFZBoKE0KEMc3RFYPRrPzUM264BIZD
You have added an extra www. to the URL
The code should look like this:
profile=urllib2.urlopen("https://graph.facebook.com/v2.0/me?access_token="+access_token)