Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting to Jira - Invalid JSON string #46

Open
Asamaclar opened this issue Apr 26, 2018 · 1 comment
Open

Connecting to Jira - Invalid JSON string #46

Asamaclar opened this issue Apr 26, 2018 · 1 comment

Comments

@Asamaclar
Copy link

Hello, we have an error since few days:

Calling: "Public Sub Connect(url As String, username As String, password As String)"

Then exception occurs:

Message: "Invalid JSON string"
Source: "Jira.SDK"
Trace:

   en Jira.SDK.JiraClient.Execute[T](JiraObjectEnum objectType, Dictionary`2 parameters, Dictionary`2 keys)
   en Jira.SDK.JiraClient.GetFields()
   en Jira.SDK.Jira.Connect(String url, String username, String password)
   en JiraToTfs.JiraController.LoadJiraIssues(Dictionary`2 kv, Dictionary`2 kvg, Dictionary`2 kvqa, Dictionary`2 kvdev) en...

We use last version Jira.SDK 1.2.24

Ty

@BudyTheElf
Copy link

This happened to us too.
The script was running great then bam, total meltdown, potentially setting me back weeks if I have to rebuild with a different SDK.

I switched to Altessian.Jira.SDK and was able to query data and also use the web browser via https://jira.myCompany.com/rest/api/2/filter/favourite
so it's definitely not due to a server change.

I am using Jira.SDK 1.2.1.0
More recent versions are not compatible with my project due to dependencies on Newtonsoft.JSON & RestSharp

List<Jira.SDK.Domain.IssueFilter> fltrs = null;
var i = 0;
ServicePointManager.ServerCertificateValidationCallback = delegate { return true; };
Jira.SDK.Jira jira = new Jira.SDK.Jira();

jira.Connect("https://jira.myCompany.com", jUserID, jPassword);

fltrs = jira.GetFilters();

var keyedFltrs = from iss in fltrs
                    select new JiraIssueFilter
                    {
                        ID = i++,
                        Description = iss.Description == null ? "" : iss.Description,
                        JQL = iss.JQL,
                        Name = iss.Name == null ? "" : iss.Name
                    };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants