leogomezz4t / PyTextNow_API

Python texting API utilizing TextNow API
MIT License
67 stars 41 forks source link

Anyone can help? - message not sent #53

Closed jkessous closed 2 years ago

jkessous commented 2 years ago

Hi All, First of all i would like to thank the developer for this script. i am trying to make it work but i get the following error when trying to send.

Traceback (most recent call last): File "", line 1, in File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 272, in send_sms self.request_handler(response.status_code) File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 315, in request_handler raise FailedRequest(status_code) pytextnow.error.FailedRequest: Could not send message. server return a Server error. Request Failed. Status Code: 520

thanks

leogomezz4t commented 2 years ago

What version of pytextnow are you using?

On Thu, Jan 27, 2022 at 9:55 AM jkessous @.***> wrote:

Hi All, First of all i would like to thank the developer for this script. i am trying to make it work but i get the following error when trying to send.

Traceback (most recent call last): File "", line 1, in File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 272, in send_sms self.request_handler(response.status_code) File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 315, in request_handler raise FailedRequest(status_code) pytextnow.error.FailedRequest: Could not send message. server return a Server error. Request Failed. Status Code: 520

thanks

— Reply to this email directly, view it on GitHub https://github.com/leogomezz4t/PyTextNow_API/issues/53, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQV6RXWVHRW2FA5LHYLRZQDUYF2JTANCNFSM5M6P3PWQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

jkessous commented 2 years ago

I went according to the instructions: Successfully installed PyTextNow-1.1.9 --> this is the verion that was installed.

jkessous commented 2 years ago

Any idea what am i doing wrong? thanks

leogomezz4t commented 2 years ago

Yeah there is a new version of pytextnow. Version 1.2.0 you can install it with pip install pytextnow —upgrade On Wed, Feb 2, 2022 at 1:36 AM jkessous @.***> wrote:

Any idea what am i doing wrong? thanks

— Reply to this email directly, view it on GitHub https://github.com/leogomezz4t/PyTextNow_API/issues/53#issuecomment-1027699795, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQV6RXWBW5I2DE522AD2UKTUZDUIRANCNFSM5M6P3PWQ . You are receiving this because you commented.Message ID: @.***>

jkessous commented 2 years ago

I did upgrade but still getting the same error. Traceback (most recent call last): File "", line 1, in File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 272, in send_sms self.request_handler(response.status_code) File "C:\Users\Jonathan\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\pytextnow\TNAPI.py", line 315, in request_handler raise FailedRequest(status_code) pytextnow.error.FailedRequest: Could not send message. server return a Server error. Request Failed. Status Code: 520

jkessous commented 2 years ago

I found the issue - it was on my side. I didnt import the csrf cookie - i went according to the video and it didnt mention anything there :) thanks it is working great,