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

[خطا] #199

Closed
aarreess00 opened this issue Nov 7, 2023 · 1 comment
Closed

[خطا] #199

aarreess00 opened this issue Nov 7, 2023 · 1 comment

Comments

@aarreess00
Copy link

هدف

خطای missing otp هنگام درخواست توکن

محیط درخواست

  • ابزار درخواست (مرورگر/ابزار/برنامه/...)
  • زبان برنامه (cURL/Python/PHP/...)
  • محل درخواست (local/VPS/...)
  • درخواست IP (داخلی/خارجی)
  • ...
    python

نحوه درخواست

import requests

url = "https://testnetapi.nobitex.ir/auth/login/"

payload = {
"username": "",
"password": "
",
"captcha": "api"
}
headers = {
"Content-Type": "application/json",
"User-Agent": "insomnia/8.3.0"
}

response = requests.request("POST", url, json=payload, headers=headers)

print(response.text)

پاسخ دریافتی

{
"non_field_errors": [
"OTP not provided"
],
"code": "MissingOTP"
}

اطلاعات تکمیلی

No response

@aarreess00 aarreess00 changed the title [پشتیبانی]: [خطا] Nov 7, 2023
@rbabaee
Copy link
Contributor

rbabaee commented Nov 7, 2023 via email

@rbabaee rbabaee closed this as completed Nov 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants