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
My issue isn't already found on the issue tracker.
I have replicated my issue using the latest version of the library and it is still present.
cloudflare-go version
v0.75.0
Go environment
v1.20
Expected output
GetImage calls to respond with Metadata on images that contain metadata.
Actual output
No metadata in response.
Code demonstrating the issue
// Upload image with metadata and grab ImageId
img, err := cloudflareApi.GetImage(ctx, cloudflare.AccountIdentifier(b.Store.cloudflareAccountId), imageId)
if err != nil {
return nil, err
}
fmt.Println(image.Metadata) # This is empty
Steps to reproduce
Upload an image and add metadata to it
Call GetImage
3.Metadata is always empty from the response
References
This is likely because the API doesn't use metadata as expected from the code here, but instead uses meta. Thus the library does not parse the response value.
I can debug the network requests and confirm that the image does in fact has metadata. The library simply omits it when parsing:
Confirmation
cloudflare-go version
v0.75.0
Go environment
v1.20
Expected output
GetImage calls to respond with Metadata on images that contain metadata.
Actual output
No metadata in response.
Code demonstrating the issue
Steps to reproduce
GetImage
3.
Metadata
is always empty from the responseReferences
This is likely because the API doesn't use
metadata
as expected from the code here, but instead usesmeta
. Thus the library does not parse the response value.I can debug the network requests and confirm that the image does in fact has metadata. The library simply omits it when parsing:
The text was updated successfully, but these errors were encountered: