-
Notifications
You must be signed in to change notification settings - Fork 34
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
regression: error saving new streets #422
Comments
Here is a "hot fix" that works: 877f036 If default value can't be fetched reliably it assumes the value is empty string '' Is this safe to keep as is? Or should the underlying issue be investigated? |
It works but with errors in console after loading saved scene. I still debuging. I'll continue tomorrow |
After I add |
No, this is not why saving works now. Without |
I noticed another issue also, will create new issue in issue list |
@Algorush the issue with data-layer-name was resolved #423 (comment) via this |
I finally found the reason, I was busy with other work for the last two days too. The reason for this error with 3dstreet/src/aframe-streetmix-parsers.js Line 130 in eb2b5c2
Instead of receive:true I wrote recieve:true . There is no such default value in schema and therefore an error appeared when receiving it. I'll make a check for the presence of properties in schema for the future
|
@Algorush ok will you make a new PR or commit or something that reverts my change if it is no longer needed, and then has your fix instead? |
I see that you have already made changes to |
@Algorush |
Ok, created new PR to fix this and similar errors in the future. Same fix as you @kfarr suggested, but without try/catch: |
closed by #430 |
after merging #395
attempting to save a street imported from streetmix results in error:
This is my mistake, I should have done more testing before deploying this, @Algorush can you help diagnose?
Flow to reproduce:
To reproduce locally in this repo:
npm run start
go to localhost:7001/#https://streetmix.net/kfarr/3/Doing so shows that the error is raised after defaultData that contains properties 'cast' and 'receive' and specifically when the key 'receive' is used with property 'default'. Cast and receive is related to shadow, so I'm expected this has to do with the addition of shadows to the scene.
I tried a bunch of things to make this work but none of them worked, you can see my weak attempts here:
https://github.com/3DStreet/3dstreet/pull/425/files
The text was updated successfully, but these errors were encountered: