App crashes when image url is not specified in CachedNetworkImage - image

I'm trying to use flutter_cached_network_image.
If there is an error in url or if there is no image in specified link (404) app just crashes.
There is errorWidget property in CachedNetworkImage and I think it should work in any case when there is an error in loading network image.
How can I achieve this behavior ?

Are you using the latest version of cached_network_image 0.8.0? I tried to reproduce your case, but with the latest version everything seems to work just fine: 404 http status code lunches the error widget builder.

Related

Azure App Service recently started throwing an error: Could not load file or assembly 'Microsoft.EntityFrameworkCore, Version=2.1.4.0

I didn't change anything, and my Azure App Service started throwing the error:
An error occurred while starting the application.
FileLoadException: Could not load file or assembly'Microsoft.EntityFrameworkCore, Version=2.1.4.0 ...
Which seemed odd, so I tried adding Microsoft.EntityFrameworkCore v2.1.4 with Nuget, and from that i just get a white error screen with
This page isn’t working
[WEBSITE] is currently unable to handle this request.
HTTP ERROR 500
With no other errors.
This all works perfectly fine locally (as always...) - I am not sure where to go from here? Any ideas? Thank you.
The error is because of the different versions between packages.
Please use this command in PM.
Install-Package Microsoft.VisualStudio.Web.CodeGeneration.Design -Version 2.0.3
For more details, you could refer to this issue.

CakePHP 3.2: DebugKit error when opening panel

When I try to open any panel in DebugKit, CakePHP logo just keeps spinning and I can see there is an error in console. This is the error that I get :
Call to undefined method App\Controller\Component\MyComponent::configKey()
Which is strange because this component works totally fine and it doesn't show any errors when I use it in the application.
I figured out what was causing the error. My components name was Cookie and DebugKit plugin uses component with this name as well, so plugin was trying to call function configKey, which of course could not be found in my component.

Webstorm 11 build-in server returns 404

My default port for build-in server is 63342:
Also I've got JetBrains browser plugin installed
I just added Javascript debug configuration:
But getting this 404 error in borwser:
How to fix that?
p.s
Also I probably should point that I am trying to debug angular2 application it it makes any difference.
Just 1 idea - I can see that your actual project path (ng2-intro-my) differs from the one in URL (ng2intro). This may be the issue

Why is my meteor app getting these errors on firefox but not other browsers?

The web app that I am building in meteor works in chrome and I.E.(Other than a UI bug in I.E.) but it starts acting strange in Firefox. When I run it on my localhost and on the deployment to meteor.com, I don't get any errors in the console in the browsers' developer tools.
When I run it in Firefox, things start acting weird. On Mac OSX, if I run the app on my localhost and open it in FF it is just fine. However, when I open up the app that deployed to meteor.com via meteor deploy [my-app-url].com, I get the following errors but I can still use everything in my app:
Error 1:
mutating the [[Prototype]] of an object will cause your code to run very slowly;
instead create the object with the correct initial [[Prototype]] value using Object.create
Error 2:
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
at https://ddp--3071-[my-app-url].com/sockjs/info?cb=v9pygo9mzn.
(Reason: CORS request failed).
While right now I am not able to figure out what is causing the first error, I am mostly worried about the second error.
When I open up the app from it's deployment in FF on Windows 8, I get the first error once, and then I get the second error repeatedly and the app never loads(it just stays on my loading template from the iron router). My deployed app runs just fine on Chrome and I.E.
I don't send any kind of request to another server in my app, so I am not sure why I am getting a CORS request error. I have not set up SSL or began to make a certificate yet, so I am not sure if this could be causing this kind of error in FF as I got another exception on my login page in FF on my localhost saying that I shouldn't have password elements when I'm not using https.
Does anyone know what could be causing this?
Sorry that I provide any code, as I don't know what code I would post to solve this problem since I don't actually request anything from another server in code that I have written.
Thanks in advance for any responses!
If anyone is interested, it seems as if my combination of the aldeed:collectio2 package and one of my other packages was the cause of my problems. I removed this package and my issues went away.

Bad request issue with latest version of selenium and firefox

I am working on phpunit-selenium for browser automation with headless Firefox. I updated both selenium and Firefox to latest version. And it started throwing error for me.
“PHPUnit_Extensions_Selenium2TestCase_WebDriverException: Bad request“
Now I googled for this and found that this issue is related to hosts files:
Unable to call FirefoxDriver constructor
https://code.google.com/p/selenium/issues/detail?id=3280
But I cannot update hosts file due to application restrictions. Is there another way to fix this?
Modifying the profile should resolve the issue for you.
Note that this is a Java code fragment, You would have to do something similar with the php API:
profile.setPreference(FirefoxProfile.ALLOWED_HOSTS_PREFERENCE,"set.myhost.com");

Resources