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

decodeBodyMap fails for newly created AutomationToken #575

Open
dimiechatz opened this issue Jan 13, 2025 · 1 comment
Open

decodeBodyMap fails for newly created AutomationToken #575

dimiechatz opened this issue Jan 13, 2025 · 1 comment
Labels

Comments

@dimiechatz
Copy link

The creation of an AutomationToken using CreateAutomationToken is failing with:

* error decoding 'last_used_at': parsing time "" as "2006-01-02 15:04:05": cannot parse "" as "2006"

The AutomationToken is actually being created but not being returned because of the error returned by decodeBodyMap.
It should be expected for the value of last_used_at to be an empty string after the creation a token.

The error is returned initially from stringToTimeHookFunc(): https://github.com/fastly/go-fastly/blob/v9.12.0/fastly/client.go#L743

@kpfleming kpfleming added the bug label Jan 13, 2025
@kpfleming
Copy link
Contributor

Thanks for the detailed report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants