Page speed insights is not giving results - pagespeed-insights

I have tested more than 10 shopify stores urls, but for every store I am getting an error.
Lighthouse returned error:
NOT_HTML. The page provided is not HTML (served as MIME type text/plain)
I am not getting speed results.... What is the issue in the new update?

Related

while storing the value of ckeditor5 in mysql showing forbidden error using code igniter4

I have integrated ckeditor5 in code igniter 4.When the content of ckeditor is normal paragrap,It is processsed in post request and stored in db.But when content is style paragrap, showing forbiden error.This issue not faced in core php and ci3.In ci4 i am facing this issue.I have searched since 3 days but i am not getting exact solution.Please help me regarding this issue.
Demo
content of texteditor : <p>test</p>:It will be processed fine.
content of texteditor : <p style="color:red;">test</p>: It showing error

Express.js : json data is not returned completely

I am developing an API for a chart that contains large JSON data, and sometimes JSON is not returned completely.
If I reload the API again after some reload, data is returned completely.
In the chrome network tab, I usually got
failed to load response data: no data found for a resource with the given identifier.
In the firefox network tab, I got the error as:

Opencart facebook extension unexpected token

I am on version : 2.0.1.1 and when i upload the facebook extension on my opencart admin i get the following error:
"
SyntaxError: Unexpected token < in JSON at position 0
"
I hope thats sufficient information
This generally happens when a controller returns html to the view via an AJAX call and the call is expecting JSON. In my experience the unexpected token & html that is returned tends to be a server error of some sort.
To test this out, you should disable the extension, inspect element on the page and record the network traffic. Then when you enable the extension, look at the requests that are made:
Chances are, there'll be a 500 under the "Status" column, if you click the row that has the 500 on it, you'll see details of what was sent to the controller and what was returned:
You can now look at what the unexpected token actually is by clicking "Response", chances are, it's expecting a JSON response and it's getting something else altogether:
While this won't solve your issue, it will help you troubleshoot a little more effectively.

Unable to download video from Google Photos API baseUrl

I am trying to download a video from {baseUrl=dv}. ( URL 1 )
After that the page on this URL was redirected and getting a 500 error ( URL 2 ).
What's missing?
There is currently a known issue with base URLs for videos. Accessing the video via the dv parameter returns a 500 Error.
You can follow along on the issue tracker here: https://issuetracker.google.com/111638708 ("Star" the issue to be notified of any updates.)

Showing a notice when site fails to load completely

Sometimes during overload some sites fail to load.
I can detect this error using chrome.webRequest.onErrorOccurred api.
I guess the content script will not run at all in this case so sending message from background page to content script is of no use.
How can I paste a notice in the site body that it has failed to load?
Maybe using script execute from the background page? Will the page have a body content?
You've got a few options here. If you're using chrome.webRequest.onErrorOccurred() though I'd suggest you redirect the tab to an error page when an error occurs, using chrome.tabs.update().
For example:
chrome.webRequest.onErrorOccurred.addListener(function(details)
{
chrome.tabs.update(details.tabId, {url: "URL FOR AN ERROR PAGE"});
},
{types: ["main_frame"]});
This will redirect the tab the error occurred in when a web request with a resourceType of main_frame errors.
There are a few things you need to consider here. Do you only want to capture errors from requests with a type of main_frame? If not, just remove the 'types' filter from the event.
The other thing you need to consider is what page you're redirecting to. You can package a HTML file within your extension and then redirect to that. To generate the URL of your error page you can run chrome.extension.getURL('customerrorpage.html').

Resources