-
Notifications
You must be signed in to change notification settings - Fork 53
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
🐛 [BUG] - Fail on Unsubscribe #934
Comments
Hey @manuelbarzi need some info regarding this
|
Also would recommend to use staging env, since dev is for internal team and in unstable. |
First of all we are using staging env. The dev env detailed in the ticket was wrong. We are working on staging env
|
hi @Aman035
|
Hey @manuelbarzi again I can't find any channel that starts with Also shift to Can u paste the fn code which u r using for unsubscribe and channel u r trying to unsubscribe ( the channel name or its url - eg - staging.push.org/channels?channel=0x35B84d6848D16415177c64D64504663b998A6ab4 ) Ideally this is the fn that u should use
|
independently of the address of the channel, @Aman035, what we are stating is that the {status: '', message: 'struct is not iterable'} and this is because exceptions do not seem to be correctly managed inside this |
@Aman035 I tested it again with other channel in env staging and sepolia network. Channel address: 0x94aBa23b9Bbfe7bb62A9eB8b1215D72b5f6F33a1 When I called this, response.status was 204 Now when I call this, isChannelInSubscriptions is true const isChannelInSubscriptions = subscriptions.some(({ channel }) => channel === "0x94aBa23b9Bbfe7bb62A9eB8b1215D72b5f6F33a1")); But when I try to unsubscribe using the following code, the response is { message: "struct is not iterable", status: ""} |
Expected Behaviour
to unsubscribe the user account from channel calling - internally - to the API (for unsubscribe)
Current Behaviour
we observe that the API for unsubscribe is not taking place when we call to:
we've been debugging a bit the protocol pushapi and we found out that a this point
in file
webpack-internal:///(app-pages-browser)/node_modules/viem/dist/esm/utils/typedData.js
from viemthe
type
parameter isundefined
the message looks correct (eg:
{data: '{\n "channel": "0x923796dAc057E7…1bD295c36F560617e",\n "action": "Unsubscribe"\n}'}
)and also we want to state the error handling doesn't work properly and we observe no error thrown on this situation, but a very weird response message
response
please, let us know if there's anything else we should provide to give more light to this issue. also my colleague @federicolopezeikilis is aware about it and he detected this issue
Reproduction steps
Screenshots
Relevant Logs
Dapp Env
Dev (dev.push.org)
Browsers
Chrome
The text was updated successfully, but these errors were encountered: