(Solved) Create REDMINE Ticket FAILURE (wrong API key)

Moderators: Amaradana, TurboPT, TL Developers

(Solved) Create REDMINE Ticket FAILURE (wrong API key)

Postby hkohen » Tue May 30, 2017 10:02 pm

Hi i'm trying to integrate testlink with redmine and i'm getting this error when i want to create an issue:

Create REDMINE Ticket FAILURE => redmine::_requesturl:http://10.2.242.80/redmine/ - response:{"url":"http:\/\/10.2.242.80\/redmine\/\/issues.xml","content_type":"application\/xml","http_code":412,"header_size":395,"request_size":472,"filetime":-1,"ssl_verify_result":0,"redirect_count":0,"total_time":0.015,"namelookup_time":0,"connect_time":0,"pretransfer_time":0,"size_upload":223,"size_download":0,"speed_download":0,"speed_upload":14866,"download_content_length":-1,"upload_content_length":223,"starttransfer_time":0.015,"redirect_time":0,"redirect_url":"","primary_ip":"10.2.242.80","certinfo":[],"primary_port":80,"local_ip":"10.2.241.143","local_port":64515} - content: "" - serialized issue:N;


i already activated rest api in redmine .

here's my bts configuration in testlink:

<issuetracker>
<apikey>63af4b716d2ae5c38a1ec5cfdba1475ac82ede0e</apikey>
<uribase>10.2.242.80/redmine/</uribase>
<uriview>10.2.242.80/redmine/projects/intg/issues#</uriview>
<projectidentifier>intg</projectidentifier>
</issuetracker>


ii'm using testlink1.9.16 and redmine 3.3.3


does somebody have an idea about this ? Thankss:))
hkohen
TestLink user
 
Posts: 3
Joined: Sun May 21, 2017 9:39 am

Re: Create REDMINE Ticket FAILURE (error from testlink)

Postby TurboPT » Tue May 30, 2017 10:10 pm

HTTP code 412 means:

412 Precondition Failed (The server does not meet one of the preconditions that the requester put on the request.)

Unfortunately, I've never dealt with Redmine, so I'm not sure what the "preconditions" could mean. Perhaps this could assist others crossing this post to help troubleshoot the issue.
TurboPT
Member of TestLink Community
 
Posts: 339
Joined: Sun Dec 10, 2006 4:51 am

Re: Create REDMINE Ticket FAILURE (error from testlink)

Postby hkohen » Tue May 30, 2017 10:24 pm

i forgot to mention that i'm using the bitnami stack of redmine and testlink . and they are not installed on the same host .
hkohen
TestLink user
 
Posts: 3
Joined: Sun May 21, 2017 9:39 am

Re: Create REDMINE Ticket FAILURE (error from testlink)

Postby hkohen » Wed May 31, 2017 8:13 pm

i solved the issue. the problem was that i was using an api key which it belongs to the administrator of redmine, so i created a new project with new members and i used the api key of the manager of this new project and it's working ffine now .
hkohen
TestLink user
 
Posts: 3
Joined: Sun May 21, 2017 9:39 am

Re: (Solved) Create REDMINE Ticket FAILURE (wrong API key)

Postby gunder19 » Tue Mar 06, 2018 7:30 am

<uriview>10.2.242.80/redmine/projects/intg/issues#</uriview>

http://iredmine.xxx.com/issues/54654 on web page so it must be <uriview>http://iredmine.xxx.com/issues/</uriview>
gunder19
TestLink user
 
Posts: 2
Joined: Fri Mar 02, 2018 6:58 pm


Return to Redmine



Who is online

Users browsing this forum: No registered users and 1 guest