Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
f92ee4e4
Unverified
Commit
f92ee4e4
authored
Jan 01, 2019
by
Davanum Srinivas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Log more details when we get the 0-length error
Change-Id: I9733521a3afd91c54c19fe08d0622df4187c0c0c
parent
7946a9a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
request.go
staging/src/k8s.io/client-go/rest/request.go
+2
-1
No files found.
staging/src/k8s.io/client-go/rest/request.go
View file @
f92ee4e4
...
@@ -1100,7 +1100,8 @@ func (r Result) Into(obj runtime.Object) error {
...
@@ -1100,7 +1100,8 @@ func (r Result) Into(obj runtime.Object) error {
return
fmt
.
Errorf
(
"serializer for %s doesn't exist"
,
r
.
contentType
)
return
fmt
.
Errorf
(
"serializer for %s doesn't exist"
,
r
.
contentType
)
}
}
if
len
(
r
.
body
)
==
0
{
if
len
(
r
.
body
)
==
0
{
return
fmt
.
Errorf
(
"0-length response"
)
return
fmt
.
Errorf
(
"0-length response with status code: %d and content type: %s"
,
r
.
statusCode
,
r
.
contentType
)
}
}
out
,
_
,
err
:=
r
.
decoder
.
Decode
(
r
.
body
,
nil
,
obj
)
out
,
_
,
err
:=
r
.
decoder
.
Decode
(
r
.
body
,
nil
,
obj
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment