Open lanyeeee opened 1 week ago
It seems that this issue is caused by Tauri v2 using webkit2gtk 4.1
, while Tauri v1 uses webkit2gtk 4.0
, so it doesn't have this problem.
Perhaps I should open another issue over at wry
regarding this.
Experiencing the same, apparently
I think I'm having a similar issue in MacOS, though I'm not exactly sure.
in dev mode, when I try to reach a video, I get the following error:
"Failed to load resource: the server responded with a status of 500 (Internal Server Error) blablavideodress.mp4"
But this is not the case in the production app! When I try to open the app in production mode, apple asks me "do you trust this app bla bla" and the video appears on the front end in the end.
Note that, this never happens on the Windows side. in Windows, everything is working very well both in production/dev mode.
Note 2: I m in v2.0
this is my permissions:
{
"identifier": "migrated",
"description": "Permissions that were migrated from v1 and additional required permissions",
"local": true,
"windows": [
"main"
],
"permissions": [
"core:default",
"os:default",
"dialog:default",
"dialog:allow-open",
"dialog:allow-save",
"dialog:allow-ask",
"dialog:allow-message",
"fs:allow-remove",
"fs:allow-read-dir",
"fs:allow-read-text-file",
"fs:allow-app-write",
"process:default",
"shell:default",
"log:default"
]
}
edit: my problem was not related to this topic sorry.
my problem was the mismatch between the frontend's use of the built-in asset:// protocol () and the backend's custom protocol handler. By aligning the frontend to utilize the custom protocol, I ensured that external video files were correctly served during development on macOS, thereby resolving the 500 Internal Server Error. (now I don't use convertFileSrc)
Was glad when I saw the option to set a proxy on the window, but it seems proxies with authentication don't work?(
.proxy_url(Url::parse("http://user:pass@IP:PORT").unwrap())
It seems even without authentication it doesn't work, not even a request comes to the proxy
.proxy_url(Url::parse("http://127.0.0.1:58846").unwrap())
[✔] Environment
[-] Packages
[-] Plugins
[-] App
Describe the bug
In Tauri v2 running on Ubuntu, the system proxy is not automatically detected or used, while Tauri v1 automatically uses the system proxy under the same conditions.
Additionally, both Tauri v1 and v2 work as expected on Windows, the system proxy is automatically used.
I found the workaround for Tauri v2 by setting the
proxyUrl
in thetauri.conf.json
to the system proxy address. https://v2.tauri.app/reference/config/#proxyurl This allowed the application to use the proxy. However, there are several downsides to this manual configuration:When
proxyUrl
is set tonull
, the application in Tauri v2 on Ubuntu does not use any proxy at all. There is no option for Tauri v2 on Ubuntu to automatically detect and use the system proxy without manual configuration.This issue was discovered when I was trying to solve #11238
Reproduction
Follow these steps to reproduce the issue on Ubuntu 22.04:
lib.rs
http://127.0.0.1:7890
.proxyUrl
intauri.conf.json
as follows:Expected behavior
Tauri v2 on Ubuntu should automatically use the system proxy, just like Tauri v1 do on Ubuntu, and how both Tauri v1 and v2 do on Windows. The main problem is that there is currently no way for Tauri v2 on Ubuntu to automatically detect and use the system proxy. Instead, Tauri v2 on Ubuntu either completely ignores the proxy or requires manual configuration, which is not ideal.
Full
tauri info
outputStack trace
No response
Additional context
No response