Skip to content

خطای Missing Captcha' #33

@AmirAslanHaghrah

Description

@AmirAslanHaghrah

من به کمک پایتون قصد لاگین به کمک رابط نوبیتکس را داشتم که با خطای زیر مواجه شدم:

{'non_field_errors': ['Missing Captcha'], 'code': 'MissingCaptcha'}

کد مورد استفاده:

import requests 
  
# api-endpoint 
URL = 'https://api.nobitex.ir/auth/login/'
  
# location given here 
username = 'test@test.com'
password = 'test1234'
  
# defining a params dict for the parameters to be sent to the API 
data = {'username':username, 'password':password, 'remember':'no'} 

  
# sending get request and saving the response as response object 
r = requests.post(url=URL, json=data) 
print (r.request.headers)

# extracting data in json format 
data = r.json() 
print(data)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions