Error when posting an object
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 50/100
Research direction
Start in lib/microsoft_kiota_abstractions/request_information.rb at line 101, where set_content_from_parsable raises the NameError while posting an object. Reproduce the POST request and verify that content is assigned without the undefined this reference. Done means the object can be posted without this error.
Written by the indexing model from the issue text.
Description
/home/jasonjoh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/microsoft_kiota_abstractions-0.13.0/lib/microsoft_kiota_abstractions/request_information.rb:101:in
set_content_from_parsable': undefined local variable or methodthis' for #<MicrosoftKiotaAbstractions::RequestInformation:0x00007feeaa6523e0 @headers=#<MicrosoftKiotaAbstractions::RequestHeaders:0x00007feeaa6523b8 @headers={"Accept"=>["application/json"], "Content-Type"=>["application/json"]}>, @query_parameters={}, @path_parameters={"baseurl"=>"https://jsonplaceholder.typicode.com"}, @url_template="{+baseurl}/posts{?userId*,title*}", @http_method=:POST> (NameError)this.content = writer.get_serialized_content(); ^^^^
I believe this should be changed to:
@content = writer.get_serialized_content();
- Dominant language
- Ruby
- Stars
- 5
- Forks
- 8
- Avg merge
- 19h 44m
- Merged PRs (30d)
- 25
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/kiota-ruby
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/kiota-ruby#74 ·
Maintainers usually reply within 1 day
-
help wanted ruby type:bug
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/kiota-ruby#58 ·
Maintainers usually reply within 1 day
-
http - RetryHandler MUST respect retry-after: <date>Possibly taken @voidstackloop claimed this 18 days ago. Openenhancement help wanted type:enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
microsoft/kiota-ruby#126 · 3 comments ·
Maintainers usually reply within 1 day
-
enhancement help wanted type:enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/kiota-ruby#127 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 35/100
microsoft/kiota-ruby#46 ·
Maintainers usually reply within 1 day
All issues in microsoft/kiota-ruby
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
rails/mission_control-jobs#347 ·
-
PROJECT: ILR/DRS
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
thewca/worldcubeassociation.org#15914 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
benbalter/site-inspector#127 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
benbalter/jekyll-remote-theme#168 ·
Maintainers usually reply within 1 day
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
benbalter/jekyll-titles-from-headings#109 ·
Maintainers usually reply within 1 day