Google app engine python logging not working - google-app-engine

I can't print to the browser console despite trying the code below.
import logging
logging.getLogger().setLevel(logging.DEBUG)
logging.debug("print this.")

None of the Python logging will get out to the browser console.
All the logs messages go out to the project dashboard (https://appengine.google.com/logs?&app_id=s~your-project), or to STDIO when developing locally.
If you want to see logging messages on the browser console, those have to be called by Javascript on the web page!

Related

White screen and rejected error in CRA app with Amplify

When I put a new react app version to production in amplify, for some users they only see a white screen and in the console I have seen the error message which said "rejected". Browser did not download my js or css files.
I'm using rtk query to cache my end point calls and service workers to enable Pwa if they may be relevant.
Thanks!

React app doesn't get API results after deploying to Heroku

I did basic movie database type app with React and then deployed it to Heroku. App contains input field and it returns results after pressing Enter, and this works just fine locally. My problem is when I deployed my app to Heroku nothing happens anymore when I hit Enter and trying to search something. I belive app works correctly but for some reason it doest't get data from API when app is deployed to Heroku. Any ideas what causing this problem and how to fix this?
Source code
Live demo
Mixed Content: The page at 'https://reactmoviedb.herokuapp.com/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://www.omdbapi.com/?apikey=bf410ecf&s=dfvdf'. This request has been blocked; the content must be served over HTTPS.
The error your are getting
ReactJS API Data Fetching CORS error

React app showing blank page in GitHub pages

After uploading my react app on gitHub pages its showing a blank page, and there is no error displaying in console. When I inspected the pages it says:
You need to enable javascript to run this page
but when I checked by browser settings it shows my javascript is enabled.
Here is my console
Here are the elements
Here is the Package.json
Also when I tested with a basic react app(no routes only single page) it was displaying properly
If gitHub is not publishing, is there any other alternative to publish my work?
Thanks
It looks good from my side. You should try with another browser to see if the problem persists.

Electron React : Unable to view console log from react

I have Electron app which access react app running on dev server. I use loadURL("http://localhost:3000/") to access the reactapp within electron. The react app having console logs however not able to view the logs anywhere. how do I view these log messages
NB: I am new to JS /react/Electron and come from enterprise java background
For the render process you can start here.
https://electronjs.org/docs/tutorial/application-debugging
for the main process you can see here.
https://electronjs.org/docs/tutorial/debugging-main-process
if you are using vscode you can use this handy guide.
https://electronjs.org/docs/tutorial/debugging-main-process-vscode

How to show console.log() in code in Terminal from web extension firefox?

In Web extension Firefox :
How to show or enable console.log() in my code in the terminal , I used "we-ext run -v" command but it show logs of web extension framework not my logs in my code ?
Are you sure your setup is right? For me, console.log() messages are shown in both, browser console and web console.

Resources