net::ERR_CONTENT_LENGTH_MISMATCH heroku - heroku

I get this error on my chrome console
GET http://deard.herokuapp.com/static/js/third-party/browser.js net::ERR_CONTENT_LENGTH_MISMATCH
(index):29 GET http://deard.herokuapp.com/static/css/bootstrap.min.css net::ERR_CONTENT_LENGTH_MISMATCH
When i comment these two files out in the code, the site loads perfectly (looks weird, of course)
Also I can see in the developer console that the file does get loaded fine on the frontend with status code 200 OK.
Why would this length mismatch be happening?
This is a flask-socketio app hosted on heroku (using gunicorn). The site works perfectly fine locally.

Related

Getting 400 bad request error on cypress chrome while working fine manually

The problem is I have a website which i run on local to test cypress scripts and it is not working as expected in cypress first of all when I go to desired URL gives me 400 bad request error but when i go to somewhere else then desired url it works fine.
Like this
cy.visit('/feature-bundles');
cy.contains('button','Merchants').click();
Cy.get('button','products'). click ();
This works fine but if I direct starts with second steps from merchants then i got 400 bad request error in console
But in manual it's perfectly fine. I don't get it where i m wrong

Google re-captcha stop loading suddenly

We have implemented the Google re-captcha, it was working fine. File - https://www.gstatic.com/recaptcha/releases/CHIHFAf1bjFPOjwwi5Xa4cWR/recaptcha__en.js giving 404.
On our staging environment - We have downloaded - https://www.google.com/recaptcha/api.js and load it locally, once all looks fine. We moved the changes over the Live instance. Till yesterday all looks fine, captcha was loading and working fine but from today not visible on both environment LIVE and Staging, and above mention recaptcha__en.js file giving 404.
1st Ques - Can we download https://www.google.com/recaptcha/api.js and load it from our base URL?
2nd Ques - what is 'CHIHFAf1bjFPOjwwi5Xa4cWR' in https://www.gstatic.com/recaptcha/releases/CHIHFAf1bjFPOjwwi5Xa4cWR/recaptcha__en.js?
Found the error, should not download and load https://www.google.com/recaptcha/api.js from you local setup. It is recommended, even when you load the https://www.google.com/recaptcha/api.js in browser it is written at the top of file that - /* PLEASE DO NOT COPY AND PASTE THIS CODE. */ and I missed it .

unable do download file from ie11

unable do download file from ie11, when click on download button post request send to the server. I checked in network section the response will come with content of file but in internet explorer 11 download prompt will not appear instead of that if display error page can not display and url will not correct . This program working fine with Mozilla Firefox.
I created a demo program which runs on my local host with same configuration ie11 works fine. but same program I tried to run on my production server tomcat getting same error.
I had this same problem,but incase of PDF's my pdf file was not downloading from IE, in my case also the file was getting downloaded from the Firefox, I just checked the url, there is no such limit to the length of the url but in this I just reduced the length of the url and it worked, but I didn't get what IE does different in this maybe its the server which is handling the request from IE differently or while sending IE is doing something different, just check if this works, reduce the length of the url and try again.

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.

sending PKPAss to Safari with PHP

All,
I am following a tutorial to get PHP to deliver a pass. I have been using the console to check the logs in XCODE. I have also checked and there is no PHP errors on the local server.
When I browse to the page which should download the pass, I get this on my safari screen on my iPhone.
So it is downloading from the local server, but I cannot see the pass, just the binary code.. Is there anything on iPhone 6/ iOS 8 that I should be checking ?
thanks
Your web server is not correctly set up to serve the file with a MIME type that identifies the .pkpass file as a Passbook pass. More so, your server appears to be using a text or html MIME type that instructs the browser to read the file as text.
See my answer to this question for how to properly configure your server.

Resources