wpoely86 / redmine-azure-devops-migrate

script to migrate redmine issue and wiki to azure devops work items and wiki
GNU General Public License v3.0
8 stars 5 forks source link

Error 406 on Connect #5

Closed henrique25teles closed 2 years ago

henrique25teles commented 2 years ago

I have a problem that I solved myself. I have an error 406 when trying to connect to redmine.

henrique25teles commented 2 years ago

I've editted the script to looks like this

`my_requests = { 'headers':{'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'} }

redmine = Redmine(redmine_url, username='admin', password='xxxx', requests=my_requests)`

Where is 'User-Agent', i suggest you type on google "what is my user agent" or get this on javascript console if you know how. Replace with the value you received and try again.