lundi 5 juillet 2021

Laravel throws error "The scheme `javascript` isn't valid. It should be either `http` or `https`"

I just pulled out from bitbucket our Laravel company project but when I try to load the screen I get this error message:

The scheme `javascript` isn't valid. It should be either `http` or `https`

I've checked and the code is the same in production but there is works fine. It's a 5.7 version so when I run composer install and npm i I'm getting a lot of warnings can be that the cause of the error that maybe my composer and node are too updated?

This is the function on the error handler that is throws this error:

class InvalidArgument extends InvalidArgumentException
{
    public static function invalidScheme(string $url): self
    {
        return new static("The scheme `{$url}` isn't valid. It should be either `http` or `https`.");
    }
}

I've commented out all the lines from the view that may be suspicious of retrieving any js file but still getting the same error message so I guess that despite what the error log says the error may not come from the view?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire