Closed urbnywrt closed 6 months ago
سلام، ممنون از شما. چرا بررسی response رو کامنت کردید؟
سلام، ممنون از شما. چرا بررسی response رو کامنت کردید؟
It causes error, but code seems okay without it
Okay, it'll be merging after the last check. Thank you.
@urbnywrt
Thank you for the PR and for bringing up the error. After reviewing the code and the error message, here are my observations:
The error occurs because response
is None
when await response.raise_for_status()
is called. This might happen if the session.get
call does not return a valid response object.
result = await response.content
is incorrect and unnecessary. This line is causing confusion and potential errors.endpoint
parameter.
result
from await response.content
resolves the NoneType
error.Please let me know if you need any further clarification or if there are additional changes you'd like to discuss. Your PR will be merged soon...
Fixed subsend_request()
Without this fix get_subscription_info and get_subscription are broken