Project
YouTrackSharp
Priority
Normal
Type
Exception
State
Can't Reproduce
Assignee
Hadi Hariri
Subsystem
No subsystem
Fix versions
No Fix versions
Affected versions
No Affected versions
Fixed in build
Next Build
  • Created by   Jeroen Van Bortel
    2 years ago (16 Apr 2012 07:04)
  • Updated by   Rory Plaire
    23 months ago (15 Sep 2012 12:22)
 
YTSRP-28 Cannot create a connection. It always throws a "Not Found" exception when doing the httpRequest.Post
1
Issue is visible to: All Users
  The issue is visible to the selected user group only
Hi,

I'm trying to get things going with the YouTrackSharp library.
Now, I keep running into this "Not Found" error when the httprequest.post takes place in the MakePostRequest method.

I create a connection like this:

var connection = new Connection("support.mycompany.eu");
connection.Authenticate("xxx", "yyy");

I also tried host "mycompany.myjetbrains.com" which is an alias.
xxx is my login and yyy is my password. I have an Admin account but I also tried it with the root account.

Now, when this call is made inside the MakePostRequest method:

httpRequest.Post(_uriConstructor.ConstructBaseUri(command), data,
HttpContentTypes.ApplicationXWwwFormUrlEncoded);

Then I always get a "Not found" HttpException. Nothing more. Just "Not found".
Do you have any idea of what's going wrong and what other things I can try to get it working.

We have an "in the cloud" version of youtrack.

Also, I read that youtracksharp could work with custom fields. But then it was rolled back? Does it support custom fields or will it in the future. And how can we request them?

Thanks!
Jeroen
Comments (8)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Hadi Hariri
  Hadi Hariri
20 Apr 2012 08:52
2 years ago
Hi Jeroen, can you send me the details to try and reproduce this? hadi at jetbrains.com.
Related Changes
Assignee
UnassignedHadi Hariri
Jeroen Van Bortel
  Jeroen Van Bortel
23 Apr 2012 03:06
2 years ago
Hi Hadi,

I've added my project as a zip to this thread. Look at the BDPlay.cs file where I make my connection. You can just run the solution from within Visual Studio. There is only 1 button on a form which creates the connection when clicked.

Thank you for looking in to it :)

Jeroen
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
29 Aug 2012 08:12
23 months ago
Are you providing /youtrack on the hosted version? Normally this is because of wrong url.
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
29 Aug 2012 08:13
23 months ago
I can't reproduce this. If you can, please let me know
Related Changes
Resolved Date
23 months ago (29 Aug 2012 08:13)
State
SubmittedCan't Reproduce
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
29 Aug 2012 09:11
23 months ago
IF you're passing in the URL, the correct format should be:

connection = new Connection("xxxxx.myjetbrains.com", 80, false, "youtrack");
Rory Plaire
  Rory Plaire
15 Sep 2012 02:21
23 months ago
Thanks Hadi, that's the magic constructor to use for InCloud. I think it's a little hard to find how to make a simple connection to InCloud. It might be obvious to YouTrack veterans, but a 4 parameter constructor has a lot that can go wrong, from needing 'false' for useSSL to putting the "youtrack" in the path. It would be nice if this info was front and center in the docs, or at least the Readme.md.
Hadi Hariri (Admin)
  Hadi Hariri (Admin)
15 Sep 2012 02:26
23 months ago
Completely agree. I've created new feature request. See linked issue.
Rory Plaire
  Rory Plaire
15 Sep 2012 12:22
23 months ago
I see it now. Yea, specifying the full URL would be much easier to use.