-
Notifications
You must be signed in to change notification settings - Fork 1
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
error: objectEncoder failed on property "elasticsearch": objectEncoder failed on property "autoscale": Expected a Boolean #147
Comments
Hi @dermasmid thank you for reporting this. I tried to reproduce the issue with
but it succeeds for me on 0.7.0 version. Could you please elaborate whether you get the error on preview, up, or some other combination of steps? Are you able to get the same error on my basic repro? |
could it be because it was created by an older version? prior to 0.6.0 |
Indeed! I got it reproduced, thank you. So the steps are:
|
i tried editing the state to change the autoscale field to a bool, but then i get this
|
fixed it by changing the schema version in the state to "__meta": "{"dddd":{"create":2400000000000,"default":2400000000000,"delete":3600000000000,"read":2400000000000,"update":3600000000000},"schema_version":"1"}", |
did you do it by manually tweaking state? would |
i did it manually |
thanks for responding, did not help for me, fails with a different message after I change field to bool and update metadata:
I upgraded from 0.5.1 to 0.7.0. I guess I will experiment with state until it works. |
there are some other changes that you need to make to the pulumi code, besides this bug, look at my code example above |
I changed pulumi code, its the old state that causes error. |
sorry i dont remember exactly what i did |
I'm also getting this error going from
|
Unfortunately, it looks like this issue hasn't seen any updates in a while. If you're still encountering this problem, could you leave a quick comment to let us know so we can prioritize it? (Commenting will bump it back into our triage queue.) |
hi @perevernihata - that does potentially sound like a different issue. Would you be able to provide us with your program so we can run some reproductions on our end? Thank you very much! |
To tag on here, it would be best I think if you can open this as a separate bug report. It looks like an independent problem and the comment history will only get in the way of the new investigation. |
I am not trying to report the issue, I only mentioned it cause it happened in relation to original problem - but it was me causing it and I will not be able to reproduce this on new repository since I do not remember how exactly state was manually tweaked. |
It sounds like we probably won't be able to get a repro of this issue for now then; we'll close and wait to see any new reports |
What happened?
getting this error since 0.6.0
Example
const esDeployment = new ec.Deployment(
'elasticsearch',
{
name:
es
,region:
gcp-${location}
,version: '8.9.0',
deploymentTemplateId: 'gcp-compute-optimized-v2',
elasticsearch: {
autoscale: true,
hot: {
size: isProduction ? '16g' : '4g',
autoscaling: {},
},
},
kibana: {},
},
);
Output of
pulumi about
CLI
Version 3.85.0
Go Version go1.21.1
Go Compiler gc
Plugins
NAME VERSION
cloudflare 5.11.0
cloudflare 5.9.0
datadog 4.22.0
datadog 4.22.0
ec 0.7.0
ec 0.5.1
gcp 6.66.0
gcp 6.65.0
google-native 0.31.1
google-native 0.31.1
kubernetes 4.3.0
kubernetes 4.1.1
mongodbatlas 3.10.1
mongodbatlas 3.10.0
nodejs unknown
random 4.14.0
random 4.13.2
slack 0.4.2
slack 0.4.2
Host
OS darwin
Version 14.0
Arch arm64
@pulumi/ec 0.7.0
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).
The text was updated successfully, but these errors were encountered: