Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Fisheye - Python Rest call: 404 crucible is not enabled.

AbrahamA
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
December 8, 2017

Hello All

  • Fisheye version: 4.4.1
  • Python version 2.7.6

 

My Code:

import httplib
import urllib


conn = httplib.HTTPConnection("myfisheye:2003")
args = urllib.urlencode({'userName':'myuser', 'password':'mypassword'})
#args = urllib.urlencode({'FEAUTH':'myuser:1:xxxx50713b31b7859c9c0cd6f19e4568b372e992'})
headers = {'Accept':'application/json','Authorization':'Basic', 'Content-Type':'application/json'}
r1 = conn.request("post","/rest-service/auth/login",args,headers)

#conn.request("get","/rest-service-fecru/admin/groups",args,headers)
r2 = conn.getresponse()
print r1,r2.status,r2.reason,r2

 

 

Response I get:

/home/myuser/env3/bin/python /home/modha.k/PycharmProjects/mysample/test.py
None 404 Crucible is not enabled <httplib.HTTPResponse instance at 0xc29248>
hello world

Process finished with exit code 0

 

Can you please let me know what could be the issue.

 

Thanks

Abe 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events