React-Native android: Debugging options? - remote-debugging

I keep receiving a 401 unauthorised response from my android application. When I use the remote debugging from the emulator I am unable to view the network requests.
Is it possible to view network requests from the emulator's remote debugger? If not what options do I have?

For Android you can execute in console this adb logcat *:S ReactNative:V ReactNativeJS:V.
This is the doc https://facebook.github.io/react-native/docs/debugging.html.

Related

CURL ERROR DOWNLOAD : Recv failure : Connection was reset (using c++)

I have a console application using C++
This application only serves to download files from the central server to the client
I use curl to api the download.
but there is a problem from the client environment side
in the dev environment it is successful
currently only using http to download it.
Here's a screenshot of the console app.
there is an error Recv failure: Connection was reset
Please help
thanks
screenshot error application

Cloud Shell Editor fails to load, 404 errors in Developer Tools console log in Chrome browser

This is problem only occurs in two developer PCs out of eight used by my team developing on GCP. Some of the team, when they launch the Google Cloud Shell Editor, see the editor load normally, while others see a spinner and the message
index.js:123 WebSocket connection to 'wss://970-dot-11840774-dot-devshell.appspot.com/services' failed: Error during WebSocket handshake: Unexpected response code: 404
in the Developer Tools console log when using Google Chrome.
We also see:
VM94663 bundle.js:67 Error: Connection timeout
at VM94663 bundle.js:67
Problem is not resolved by:
Restarting browser after clearing cache
Running Google Cloud Shell Editor in Incognito Mode
Running it in Firefox instead
Starting the session in "Safe Mode", an option in the hamburger menu for Cloud Shell
I've tried the other fixes in similar posts here but they don't work. Any ideas?
I have two suggestions that might help:
Have you tried to using a different network? Might be an issue with Network Firewalls
Verify if there's no policy blocking gRPC protocol, that is used by the console, either on the network firewall or in the local machine settings

Unable to link dialogflow webhook to ngrok tunnel

Have created a chatbot and I am trying to connect it to my local host using ngrok....the localjost is running via my computer and is showing active...however dialogflow webhook is not able to send any request to the ngrok portal...
I have tried multiple time to host a server via ngrok and pasted the link in webhook section in Dialogflow..but dialogflow diagnostic shows
Webhook call failed. Error: PERMISSION_DENIED.
fulfillment status ngrok cmd prompt ngrok server
Any help would be appreciated...not sure what I am missing....
Without seeing the actual configuration, there are a few things I would look at:
Make sure you're actually using the right ngrok URL from your console. Many times I was using an older URL in the Dialogflow configuration.
Make sure you're using the HTTPS URL.
Make sure your server is actually running on your computer, and that it is listening at the same port that ngrok is using on your computer.
Check the ngrok console to see if it is getting the request at all and what the response might be.
Go to http://localhost:4040/ which will give you details of each connection through ngrok.

Error after requesting to install an app on device from store

I get the following error after a few seconds, or even minutes, when trying to install an app from the store (AppManager).
The wso2carbon.log file doesn't show any error message.
I'm using the WSO2 EMM version 3.3.0 and the device is an Android 8.
It does enroll correctly, and even receives device operations such as: send ring device, and send message.
I looked for enabling debug message log, but I didn't find it for the version of wso2 iot server that I am testing.
Where can I find some clues to solve this issue?
How can I enable debug message logging for the AppManager?
The issue is not on the EMM server but rather on the EMM Android Agent. The server just receives an "ERROR" status from the EMM agent upon failure.
I recommend you run the EMM agent in debug on the device to see what is causing the issue.
I have run into many "INSTALL_APPLICATION" errors, it could be any or none of these:
Download location differs on the device
Network issues during download
Volley issues (HTTP library) - was mostly version issues
Server not allowing HTTP calls (only HTTPS) which is the default for installing apps
Device Owner/Device Admin not set correctly
Missing permissions
What you can see on the HTTP access logs is whether the install is occurring but looking to see whether the APK is downloading, log entry will look like this:
[21/Jun/2019:14:48:19 +0200] "GET /store/api/mobileapp/getfile/6THVwGRMTAG5wD7.apk HTTP/1.1" 200 3803551 "-" "Mozilla/5.0 ( compatible ), Android"
If you see the APK being downloaded then you know for sure the issue is NOT on the server.

I am making an android application to create routes with OSMDROID and the web router.project-osrm.org can not process the request (HTTP ERROR 503)

I am making an android application to create routes with OSMDROID and the web router.project-osrm.org can not process the request (HTTP ERROR 503).
enter image description here
HTTP response off the server contains status message:
503 Service Unavailable: Back-end server is at capacity
So problem is not on your side. The server has some limitations and cannot handle your request or it is maybe not working at all. I am not familiar with the project, but you may try to ask on their mailing list or IRC.
The router.project-osrm.org is often down so you should just make your own server. It is really easy with the docker file.