1. ** Severe ** [json.exception.type_error.302] type must be array, but is null

Hi,

When trying to run an energy model, I get the following error:

  1. ** Severe ** [json.exception.type_error.302] type must be array, but is null

The model had run previously. Who members of our team who have upgraded to LB 1.8 which includes a more recent version of Energy Plus encounter this error, the member of our team still on the last version has not encountered this. One of us was able to solve the problem by rolling over to a previous version of their script, but we are still not sure what is causing the error and how to avoid it.

Experiencing the same issue. All models work fine in v 1.7, but when using 1.8 some models give this 302 error. I wonder if its related to the three warnings at the bottom of this window which I don’t see when running under 1.7

I have encountered this also except it is

  1. ** Severe ** [json.exception.type_error.302] type must be number, but is string

Very sorry for the late response here. As far as I can tell, this seems to be some issue that results from OpenStudio 3.7 using a newer version of Ruby with a new JSON module. Without the full error that comes out of the report of the component, it’s tough to know what exactly went wrong.

However, I can say that the latest development version of Ladybug Tools no longer uses Ruby to translate the Honeybee model to OpenStudio. It is now all done in Python thanks to the OpenStudio Python bindings now being pretty robust. So it should not be possible to get this error in the latest version of Ladybug Tools.

You can get the latest version using the free single-click Pollination installer OR by running the LB Versioner component. We should also be releasing LBT 1.9 to Food4Rhino in the next couple of weeks, which will also have the new Python translator

1 Like

Thanks Chris as always for your assistance!

1 Like