Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Error opening URL" thrown when copying text #195

Open
tlvince opened this issue Sep 13, 2024 · 2 comments
Open

"Error opening URL" thrown when copying text #195

tlvince opened this issue Sep 13, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tlvince
Copy link

tlvince commented Sep 13, 2024

Sending text from phone to laptop works, but I get the following error when trying to copy the text to clipboard:

image

rquickshare v0.11.2

@tlvince
Copy link
Author

tlvince commented Sep 13, 2024

Seems to be received correctly as text_type && text_payload:

2024-09-13T09:21:00Z  INFO rquickshare: rs2js_channelmessage: ChannelMessage { id: "192.168.0.112:60064", direction: LibToFront, action: None, rtype: Some(Inbound), state: Some(ReceivingFiles), meta: Some(TransferMetadata { id: "192.168.0.112:60064", source: Some(RemoteDeviceInfo { name: "Pixel 7a", device_type: Phone }), pin_code: Some("9924"), destination: None, files: None, text_type: None, text_description: Some("\"digital audio workstations, mix…"), text_payload: None, total_bytes: 0, ack_bytes: 0 }) }
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Processing PayloadType::Bytes
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Processing PayloadType::Bytes
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Unhandled connection state in process_transfer_setup: ReceivingFiles
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Processing PayloadType::Bytes
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Processing PayloadType::Bytes
2024-09-13T09:21:00Z  INFO rqs_lib::hdl::inbound: Transfer finished
2024-09-13T09:21:00Z  INFO rquickshare: rs2js_channelmessage: ChannelMessage { id: "192.168.0.112:60064", direction: LibToFront, action: None, rtype: Some(Inbound), state: Some(Finished), meta: Some(TransferMetadata { id: "192.168.0.112:60064", source: Some(RemoteDeviceInfo { name: "Pixel 7a", device_type: Phone }), pin_code: Some("9924"), destination: None, files: None, text_type: Some(Text), text_description: Some("\"digital audio workstations, mix…"), text_payload: Some("\"digital audio workstations, mixing and editing software, and the perceived downsides of tape https://arstechnica.com/gadgets/2024/09/music-industrys-1990s-hard-drives-like-all-hdds-are-dying/#:~:text=digital%20audio%20workstations,proprietary%20file%20formats"), total_bytes: 0, ack_bytes: 0 }) }

So perhaps its a system/Tauri writeText issue, although the writeToClipboard error appears misleading (since it's not a URL)?

writeToClipboard: async function(text: string) {
try {
await writeText(text);
this.toastStore.addToast("Copied to clipboard", ToastType.Success);
} catch (e) {
this.toastStore.addToast("Error opening URL, it may not be a valid URI", ToastType.Error);
console.error("Error opening URL", e);
}

@Martichou
Copy link
Owner

I'll try to debug that when I have some time, thanks for the analysis

@Martichou Martichou added the bug Something isn't working label Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants