Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'image.push()' returns server error as 'Error: (HTTP code 500) server error - [object Object]' #171

Open
dgolovin opened this issue May 2, 2024 · 0 comments · May be fixed by #172
Open

Comments

@dgolovin
Copy link

dgolovin commented May 2, 2024

The message is not really helpful to understand what has happened. It is generated here

(cause.message || cause) + ' '

In my case cause has no message property, but in has error property which I think conforms with docker spec here if you look at the example.

At the same time there is an error section that states it should be a 'message' field.

Would it be possible to support both 'message' and 'error' fields? With 'message' being the first choice, 'error' the second and the cause itself for a backup.

 (cause.message || cause.error || cause)
@dgolovin dgolovin changed the title If image.push() call encounters server error the error message is Error: (HTTP code 500) server error - [object Object] image.push() return server error as Error: (HTTP code 500) server error - [object Object] May 3, 2024
@dgolovin dgolovin changed the title image.push() return server error as Error: (HTTP code 500) server error - [object Object] 'image.push()' returns server error as 'Error: (HTTP code 500) server error - [object Object]' May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant