breautek commented on issue #500:
URL: https://github.com/apache/cordova/issues/500#issuecomment-2457439634
Your APK isn't debuggable but I can still observe logcat messages which
shows:
```
java.io.FileNotFoundException: www/an/gpt/suggest
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
android.content.res.AssetManager.nativeOpenAsset(Native Method)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
android.content.res.AssetManager.open(AssetManager.java:985)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
org.apache.cordova.engine.SystemWebViewClient.lambda$new$0$org-apache-cordova-engine-SystemWebViewClient(SystemWebViewClient.java:98)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
org.apache.cordova.engine.SystemWebViewClient$$ExternalSyntheticLambda2.handle(D8$$SyntheticClass:0)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
androidx.webkit.WebViewAssetLoader.shouldInterceptRequest(WebViewAssetLoader.java:571)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
org.apache.cordova.engine.SystemWebViewClient.shouldInterceptRequest(SystemWebViewClient.java:438)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
WV.H6.a(chromium-TrichromeWebViewGoogle6432.aab-stable-672305838:86)
2024-11-05 11:07:39.746 8226-8266 System.err pid-8226
W at
org.chromium.android_webview.AwContentsBackgroundThreadClient.shouldInterceptRequestFromNative(chromium-TrichromeWebViewGoogle6432.aab-stable-672305838:15)
2024-11-05 11:07:39.746 8226-8266 SystemWebViewClient pid-8226
E www/an/gpt/suggest
```
Your application is trying to hit `www/an/gpt/suggest` which is likely
suppose to be hitting a remote server, but you're requesting against the local
device/webview instead.
This can happen if you're not using a fully qualified URL. For example if
you request `www/an/gpt/suggest` the webview will implicitly use the active
origin to form a fully qualified URL.
To hit a remote server, it must be explicitly a fully qualified url, e.g.
`https://kelteu.com/www/an/gpt/suggest`
So this suggest its an application issue, not a framework/webview issue.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]