ton-connect / sdk

SDK for TON Connect 2.0 — a comprehensive communication protocol between wallets and apps in TON ecosystem
Apache License 2.0
303 stars 83 forks source link

[UI-REACT]: Decryption error #203

Open xAhmadi opened 3 months ago

xAhmadi commented 3 months ago

Describe the bug

Hey guys, i got this error when using @tonconnect/ui-react with React.

So strange but it's only happening on mobile browsers and Telegram MiniApp, works well on Desktop.

Decryption error: 197,14,157,14,97,92,113,18,109,33,63,87,141,68,45,142,251,53,31,98,174,169,82,194,252,72,1... sender pubkey: 88,161,48,214,129,138,235,74,66,239,99,169,1.... keypair pubkey: 142,47,244,21,50,73,28,255,238,58,243,186,107,63,171,.... keypair secretkey: 187,252,27,30,134,239,213,197,29,93,213,101,181,241,208,98,34...

Expected behavior

Get connected to my wallet

Current behavior

Not connecting in mobile browsers or Telegram MiniApp's

Steps to Reproduce

Just trying to connect to my wallet on Telegram MiniApp

Environment

Package Version: @tonconnect/ui-react@2.0.5 OS: Ubuntu 22.04 Browser: In Telegram Mini Apps

Additional context

No response

deadshumz commented 3 months ago

same issue in @tonconnect/ui

ranmasootome commented 3 months ago

та же проблема в @tonconnect/ui

+1

Dmitrii-Kopeikin commented 2 months ago

same issue in @tonconnect/ui

+1

lkgit1 commented 2 months ago

Describe the bug

Hey guys, i got this error when using @tonconnect/ui-react with React.

So strange but it's only happening on mobile browsers and Telegram MiniApp, works well on Desktop.

Decryption error: 197,14,157,14,97,92,113,18,109,33,63,87,141,68,45,142,251,53,31,98,174,169,82,194,252,72,1... sender pubkey: 88,161,48,214,129,138,235,74,66,239,99,169,1.... keypair pubkey: 142,47,244,21,50,73,28,255,238,58,243,186,107,63,171,.... keypair secretkey: 187,252,27,30,134,239,213,197,29,93,213,101,181,241,208,98,34...

Expected behavior

Get connected to my wallet

Current behavior

Not connecting in mobile browsers or Telegram MiniApp's

Steps to Reproduce

Just trying to connect to my wallet on Telegram MiniApp

Environment

Package Version: @tonconnect/ui-react@2.0.5 OS: Ubuntu 22.04 Browser: In Telegram Mini Apps

Additional context

No response

Same issue using ton connect UI on Android Chrome browser

ZirionNeft commented 2 months ago

Have same problem

IvanFushtey commented 2 months ago

I have the same troubles. When I tried to connect/disconnect wallet more than 10 times, I've got error

2024-07-26 01 16 56

MaslDev commented 2 months ago

same issue in @tonconnect/ui

+1

Carl42782478 commented 2 months ago

Same issue

Iwillmanage commented 2 months ago

+1

Apollon977 commented 2 months ago

Someone help us solve this problem

Iwillmanage commented 2 months ago

Have the same issue, we tried to add proxy, change backend connection but nothing worked, so the only way is wait when TON developers will solve the problem

On Fri, 26 Jul 2024 at 23:48, Aybek Madrakhimov @.***> wrote:

Someone help us solve this problem

— Reply to this email directly, view it on GitHub https://github.com/ton-connect/sdk/issues/203#issuecomment-2253485734, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIXZTONIVWRAEYNM4L4Q4KTZOKYZJAVCNFSM6AAAAABK7KBXB6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJTGQ4DKNZTGQ . You are receiving this because you commented.Message ID: @.***>

VinDev-code commented 2 months ago

Sir, have same problem, when to expect solution?

KernelPanic0 commented 2 months ago

Same problem

lkgit1 commented 2 months ago

Y'all, switching to a previous version of the SDK works for now pending the time this bug is fixed.

Apollon977 commented 2 months ago

Y'all, switching to a previous version of the SDK works for now pending the time this bug is fixed.

Previous version of tonconnect/ui-react or tonconnect/sdk?

lkgit1 commented 2 months ago

Actually the results are the same... I figured now that the problem is caused by SSL certificate issues. Especially when hosting on platforms like Vercel.

The *.vercel.app version works as expected in my case, but the main domain doesn't work (throws decryption error).

EDIT: Solution - Use an iframe.

Dmitrii-Kopeikin commented 2 months ago

Hello everyone. Redirect from non-www domain to www domain helped me. Changing the certificate did not help.

yoshikobaru commented 1 month ago

image TonConnect and TonKeeper Team said they fixed it after I called them directly. Please let me know who got fixed, because I already changed my domain xD

tropee-moein commented 1 month ago

We are still having the same issue Other domains work fine but some reason the domain that we've had for the mini app fails with this error!

tropee-moein commented 1 month ago

We can't change our domain because we are using adsgram and if we change the domain it will stop working until they approve the new domain :(

KernelPanic0 commented 1 month ago

We can't change our domain because we are using adsgram and if we change the domain it will stop working until they approve the new domain :(

Are you able to simply redirect traffic to come from www.yourdomain.com instead of yourdomain.com? Seemed to work for me

tropee-moein commented 1 month ago

@KernelPanic0 We know other domains work but as mentioned we can't change domains for 2 reasons

Thousands of users who already connected their wallets will see their wallet is connected anymore (telegram isolates storage data per domain) adsgram doesn't allow us to change the domain of a platform which means we have to create a new domain and get approval and then start from scratch

YanYuanFE commented 1 month ago

same issue

tropee-moein commented 1 month ago

Changing the domain temporary fixed the problem and after some hours we got blocked again. Our users can not able to connect their wallet and this is becoming very frustrating :( There should be a review process if there is an automated process that blocks apps from using ton connect

Santalov commented 1 month ago

Same issue

70Viktor commented 1 month ago

Same problem

Vendari commented 1 month ago

Same problem

YanYuanFE commented 1 month ago

Changing the domain name can solve the problem. Has ton-connect blocked the domain?

tropee-moein commented 1 month ago

Changing the domain name can solve the problem. Has ton-connect blocked the domain?

@YanYuanFE Changing domain fixes the problem until the block they new domain 😄

YanYuanFE commented 1 month ago

Changing the domain name can solve the problem. Has ton-connect blocked the domain?

@YanYuanFE Changing domain fixes the problem until the block they new domain 😄

After changing the domain name, it has not been blocked yet.🐶

tropee-moein commented 1 month ago

Changing the domain name can solve the problem. Has ton-connect blocked the domain?

@YanYuanFE Changing domain fixes the problem until the block they new domain 😄

After changing the domain name, it has not been blocked yet.🐶

Lucky you Not our case unfortunately

ZirionNeft commented 1 week ago

Any news? The problem is still there, and it seems that tonconnect's team is doing this on purpose.