Potential bug with create_project()
Hi,
I'm having a problem with create_project()
which looks like a bug. Here are the details:
rustc 1.42.0 (b8cedc004 2020-03-09)
gitlab v0.1209.1
host: gitlab.com
I am able to authenticate okay using a token over TLS.
Here is the code that I'm using, it's a a shim over this library which I'll be using to mock when unit testing.
The shim (note that I'm using the anyhow lib here):
fn create_project<N: AsRef<str>, P: AsRef<str>>(
&self,
name: N,
path: Option<P>,
params: Option<CreateProjectParams>,
) -> Result<Project> {
self.gl
.create_project(name, path, params)
.context("Failed to create project.")
}
self.gl
here is an instance of Gitlab
created using the builder pattern.
The calling code:
gitlab.create_project(
"testproj",
Some("the_path"),
None
)?;
And the error:
Error: Failed to create project.
Caused by:
0: could not parse gitlab::types::Project data from JSON: invalid type: map, expected u64
1: invalid type: map, expected u64
There is a heap of additional debug output which comes out when I turn logging to verbose. I can share this if it helps, but there's a lot of it.
Hoping you can help...
Thanks in advance!
Brad