You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Searching through the source code for isForm: true seems to indicate that there should be an implementation for Users.ts that takes avatar in the above form and converts it to a tuple adding isForm: true. As such the following is a workaround right now:
Description
@gitbeaker/rest@40.1.2
The type for the
avatar
field for creating / editing a user is defined as follows:gitbeaker/packages/core/src/resources/Users.ts
Line 159 in e9ca9e9
(an object with a content and filepath field). However, this does not work, a "Bad Request" is returned from gitlab. Non-working example:
Searching through the source code for
isForm: true
seems to indicate that there should be an implementation for Users.ts that takes avatar in the above form and converts it to a tuple addingisForm: true
. As such the following is a workaround right now:Steps to reproduce
The first snippet above shows a bit of code which reproduces
Expected behaviour
We don't get a 400 Bad Request back
Actual behaviour
We get a 400 Bad Request back.
Possible fixes
Add handling in Users.ts to take avatar in the format indicated by the type into form format.
Checklist
The text was updated successfully, but these errors were encountered: