17:51:30.119 [debug] ExJira.Request: Sending GET to https://jira.company_name.com/rest/api/latest/dashboard?startAt=20&&maxResults=300 using Elixir.HTTPotion
** (FunctionClauseError) no function clause matching in ExJira.Request.get_more/5
The following arguments were given to ExJira.Request.get_more/5:
# 1
{:ok, %{"errorMessages" => ["The 'startAt' param (300) must be a multiple of the 'maxResults' param (20)"], "errors" => %{}}}
# 2
...
[truncated]
Is there a reason that the request is being constructed with a maxResult of 300 rather than just using the "next" => "https://jira.company_name.com/rest/api/latest/dashboard?maxResults=20&startAt=20" provided by the response from the previous request?
The other issue that I noticed was the double ampersand in the request uri that is an effect of #{query_params} being placed in the middle of this line:
If it is alright with you I am working on a PR to resolve this issue, and is why I had the question regarding why maxResult is jumping from 20 to 300 after the first iteration.
I will try and get a PR up in the next day, work permitting.
ERROR:
I believe it is related to this line:
https://github.com/TheFirstAvenger/elixir-ex_jira/blame/master/lib/ex_jira/utils/request.ex#L66
Is there a reason that the request is being constructed with a maxResult of 300 rather than just using the
"next" => "https://jira.company_name.com/rest/api/latest/dashboard?maxResults=20&startAt=20"
provided by the response from the previous request?Seen here:
The other issue that I noticed was the double ampersand in the request uri that is an effect of
#{query_params}
being placed in the middle of this line:and then resolving to nil.
If it is alright with you I am working on a PR to resolve this issue, and is why I had the question regarding why maxResult is jumping from
20
to300
after the first iteration.I will try and get a PR up in the next day, work permitting.