RadiantLabs / modeling-api-docs

Official Modeling API documentation
0 stars 1 forks source link

'Should Be String' Error #41

Closed lukeduran closed 4 months ago

lukeduran commented 7 months ago

REQUEST

{
"globalControls": {
        "timelineStartDate": "2023-11-19",
        "debug": true,
        "includeInputs": true,
        "resolution": [
            "annual",
            "monthly"
        ],
        "includeBase": true,
        "includeTypical": true,
        "useFixture": false,
        "timelineDurationInYears": 1,
        "units": {
            "monetary": "USD",
            "electricity": "MBtu",
            "naturalGas": "MBtu",
            "woodPellets": "MBtu",
            "propane": "MBtu",
            "coal": "metric ton",
            "emissions": "CO2",
            "woodCord": "MBtu",
            "energyStandard": "MBtu",
            "fuelOil": "MBtu"
        }
    },
    "addressFull": "7080 Big Oak Ln, Nolensville, TN 37135-2999",
    "baseBuilding": {
        "systems": {
            "hvac": {
                "hvacHeatingSystems": [
                    {
                        "heatLoadFraction": 1,
                        "fuel": "natural gas",
                        "systemType": "furnace",
                        "id": "heating-systems-1",
                        "heatEfficiencyUnits": "AFUE"
                    }
                ],
                "hvacCoolingSystems": [
                    {
                        "coolLoadFraction": 1,
                        "systemType": "central air conditioner",
                        "id": "cooling-systems-1"
                    }
                ]
            }
        }
    }
}

RESPONSE

{
    "errors": [
        {
            "in": [
                "errors",
                0,
                "message"
            ],
            "value": "http-request-error",
            "message": "should be a string"
        }
    ],
    "globalControls": {
        "timelineStartDate": "2023-11-19",
        "debug": true,
        "includeInputs": true,
        "resolution": [
            "annual",
            "monthly"
        ],
        "includeBase": true,
        "includeTypical": true,
        "useFixture": false,
        "timelineDurationInYears": 1,
        "units": {
            "monetary": "USD",
            "electricity": "MBtu",
            "naturalGas": "MBtu",
            "woodPellets": "MBtu",
            "propane": "MBtu",
            "coal": "metric ton",
            "emissions": "CO2",
            "woodCord": "MBtu",
            "energyStandard": "MBtu",
            "fuelOil": "MBtu"
        }
    },
    "addressFull": "7080 Big Oak Ln, Nolensville, TN 37135-2999",
    "baseBuilding": {
        "systems": {
            "hvac": {
                "hvacHeatingSystems": [
                    {
                        "heatLoadFraction": 1,
                        "fuel": "natural gas",
                        "systemType": "furnace",
                        "id": "heating-systems-1"
                    }
                ],
                "hvacCoolingSystems": [
                    {
                        "coolLoadFraction": 1,
                        "systemType": "central air conditioner",
                        "id": "cooling-systems-1"
                    }
                ]
            }
        }
    }
}
jefffriesen commented 7 months ago

@lukeduran what I think is happening is that there's an auth token problem with 1 part of our API. Joshua is out so I'm looking into how to fix it. But for now, I think it affects addresses that haven't been modeled before. So not ideal but you can probably rerun addresses that have been modeled before. Hopefully that will keep you unblocked until we fix this.

jefffriesen commented 7 months ago

@lukeduran Our geocoding service is having trouble finding this address (and the error should be clearer). I found another house in the same town along with the same request params that you send for 7080 Big Oak Ln and got a good response back. Some of these types of "address not found" errors are something we can do something about, some aren't. I'm cc'ing @kellyatradiantlabs to check into this when she's back from Thanksgiving break.

{
"globalControls": {
        "timelineStartDate": "2023-11-19",
        "debug": true,
        "includeInputs": true,
        "resolution": [
            "annual",
            "monthly"
        ],
        "includeBase": true,
        "includeTypical": true,
        "useFixture": false,
        "timelineDurationInYears": 1,
        "units": {
            "monetary": "USD",
            "electricity": "MBtu",
            "naturalGas": "MBtu",
            "woodPellets": "MBtu",
            "propane": "MBtu",
            "coal": "metric ton",
            "emissions": "CO2",
            "woodCord": "MBtu",
            "energyStandard": "MBtu",
            "fuelOil": "MBtu"
        }
    },
    "addressFull": "8912 Macauley Ln, Nolensville, TN 37135",
    "baseBuilding": {
        "systems": {
            "hvac": {
                "hvacHeatingSystems": [
                    {
                        "heatLoadFraction": 1,
                        "fuel": "natural gas",
                        "systemType": "furnace",
                        "id": "heating-systems-1",
                        "heatEfficiencyUnits": "AFUE"
                    }
                ],
                "hvacCoolingSystems": [
                    {
                        "coolLoadFraction": 1,
                        "systemType": "central air conditioner",
                        "id": "cooling-systems-1"
                    }
                ]
            }
        }
    }
}
kellyatradiantlabs commented 7 months ago

@jefffriesen I looked into this more. The error directly from the geocoding service is Geocoder Results Address Not Identified. When I googled this address, it looks like its new construction from 2023. If I had to guess, this address is new enough that it is not included in the vendor data yet. I think we need to tweak some things to make our processing of this response provide a more useful error to our users.

lukeduran commented 5 months ago

Hi @kellyatradiantlabs,

I'm sorry that this fell through the cracks on my end, but we are back to refining some of our features around our Radiant Labs integration and we are seeing this error pretty consistently still - for pretty normal properties (non new build, etc.).

Is it possible that something else is causing this?

jefffriesen commented 5 months ago

Weird - I'm seeing that too. We'll look into it @lukeduran thanks

jefffriesen commented 5 months ago

@lukeduran that address in the original ticket is new construction (2023) and we hadn't been able to pull that data in yet. Can you send all addresses you are having problems with? Thanks

lukeduran commented 4 months ago

Sure, there have been quite a few of these. This is happening with A LOT of addresses. Here are a couple examples:

  1. 1010 Creekglen Ct, Hendersonville, TN 37075
  2. 1204 Spearpoint Dr, Hendersonville, TN 37075
joshuamzm commented 4 months ago

Hi @lukeduran. Upon reviewing our logs, I noticed you made requests to the DEV environment. Unfortunately, the DEV environment had an issue with an expired API key to a third party service, so uncached new addresses couldn't be modeled. This specific problem wasn't present in the production environment. Have you used the production environment recently? The third party API key has been replaced and it's working from our end. Could you confirm you can get modeling results now for your addresses in DEV? Thanks for bringing this to us.

Additionally, we're aware the error message needs a bit of improvement. I'll create a follow up ticket to fix that.

lukeduran commented 4 months ago

Thanks @joshuamzm,

This seems to be working in both environments after you resolved the issue with the third party API key. Thank you very much!

lukeduran commented 3 months ago

Hi @joshuamzm,

We still seem to facing this issue. Any insight?


    "request": {
        "headers": {
            "User-Agent": "python-requests/2.28.1",
            "Accept-Encoding": "gzip, deflate",
            "Accept": "*/*",
            "Connection": "keep-alive",
            "Content-Type": "application/json",
            "Authorization": "Bearer jqnTR0wR6nmnS6u5mLEm1NSXq1kHSaF16LYlInbQ8tC04QHa",
            "Content-Length": "1611"
        },
        "body": {
            "addressFull": "3520 Thicket Run Pl, Charlottesville, VA 22911-5640",
            "addressComponents": {
                "addressLine1": "3520 Thicket Run Pl",
                "city": "Charlottesville",
                "stateAbbreviation": "VA",
                "zipCode": "22911-5640"
            },
            "baseBuilding": {
                "buildingSummary": {
                    "yearBuilt": 2023,
                    "bedroomsCount": 4,
                    "averageCeilingHeight": 8,
                    "conditionedFloorArea": 2854
                },
                "enclosure": {
                    "airInfiltration": {
                        "rate": 1938,
                        "rateUnit": "CFM"
                    },
                    "attics": [
                        {
                            "floorAssemblyEffectiveRValue": 49,
                            "id": "attic-insulation-1"
                        },
                        {
                            "floorAssemblyEffectiveRValue": 49,
                            "id": "attic-insulation-2"
                        }
                    ],
                    "foundations": [
                        {
                            "id": "floor-and-foundation-insulation-1"
                        }
                    ],
                    "walls": [
                        {
                            "assemblyEffectiveRValue": 15,
                            "id": "wall-insulation-1"
                        },
                        {
                            "assemblyEffectiveRValue": 19,
                            "id": "wall-insulation-2"
                        }
                    ]
                },
                "systems": {
                    "hvac": {
                        "hvacHeatPumps": [
                            {
                                "systemType": "air-to-air",
                                "heatLoadFraction": 1.0,
                                "coolLoadFraction": 1.0,
                                "heatEfficiency": 8.5,
                                "coolEfficiency": 15.5,
                                "compressorType": "single stage",
                                "backupSystem": {},
                                "id": "heat-pump-systems-1"
                            }
                        ]
                    },
                    "waterHeating": {
                        "waterHeatingSystems": [
                            {
                                "fuel": "electricity",
                                "dhwLoadFraction": 1.0,
                                "systemType": "heat pump water heater",
                                "id": "water-heating-1"
                            }
                        ]
                    }
                }
            },
            "globalControls": {
                "debug": true,
                "includeInputs": true,
                "includeBase": true,
                "includeTypical": true,
                "useFixture": false,
                "resolution": [
                    "annual",
                    "monthly"
                ],
                "timelineStartDate": "2024-02-27",
                "timelineDurationInYears": 1,
                "units": {
                    "energyStandard": "MBtu",
                    "coal": "metric ton",
                    "electricity": "MBtu",
                    "fuelOil": "MBtu",
                    "naturalGas": "MBtu",
                    "propane": "MBtu",
                    "woodCord": "MBtu",
                    "woodPellets": "MBtu",
                    "monetary": "USD",
                    "emissions": "CO2"
                }
            }
        }
    },
    "response": {
        "headers": {
            "Server": "nginx/1.24.0",
            "Date": "Tue, 27 Feb 2024 20:06:18 GMT",
            "Content-Type": "application/json;charset=utf-8",
            "Content-Length": "1597",
            "Connection": "keep-alive",
            "X-Request-Id": "01hqp2snh0482x98kmjfpewzhj",
            "Strict-Transport-Security": "max-age=31536000"
        },
        "body": {
            "errors": [
                {
                    "in": [
                        "errors",
                        0,
                        "message"
                    ],
                    "value": "http-request-error",
                    "message": "should be a string"
                }
            ],
            "globalControls": {
                "timelineStartDate": "2024-02-27",
                "debug": true,
                "includeInputs": true,
                "resolution": [
                    "annual",
                    "monthly"
                ],
                "includeBase": true,
                "includeTypical": true,
                "useFixture": false,
                "timelineDurationInYears": 1,
                "units": {
                    "monetary": "USD",
                    "electricity": "MBtu",
                    "naturalGas": "MBtu",
                    "woodPellets": "MBtu",
                    "propane": "MBtu",
                    "coal": "metric ton",
                    "emissions": "CO2",
                    "woodCord": "MBtu",
                    "energyStandard": "MBtu",
                    "fuelOil": "MBtu"
                }
            },
            "addressFull": "3520 Thicket Run Pl, Charlottesville, VA 22911-5640",
            "baseBuilding": {
                "systems": {
                    "waterHeating": {
                        "waterHeatingSystems": [
                            {
                                "dhwLoadFraction": 1.0,
                                "fuel": "electricity",
                                "systemType": "heat pump water heater",
                                "id": "water-heating-1"
                            }
                        ]
                    },
                    "hvac": {
                        "hvacHeatPumps": [
                            {
                                "heatLoadFraction": 1.0,
                                "heatEfficiency": 8.5,
                                "backupSystem": {},
                                "coolLoadFraction": 1.0,
                                "coolEfficiency": 15.5,
                                "systemType": "air-to-air",
                                "id": "heat-pump-systems-1",
                                "compressorType": "single stage"
                            }
                        ]
                    }
                },
                "enclosure": {
                    "airInfiltration": {
                        "rate": 1938,
                        "rateUnit": "CFM"
                    },
                    "walls": [
                        {
                            "assemblyEffectiveRValue": 15,
                            "id": "wall-insulation-1"
                        },
                        {
                            "assemblyEffectiveRValue": 19,
                            "id": "wall-insulation-2"
                        }
                    ],
                    "foundations": [
                        {
                            "id": "floor-and-foundation-insulation-1"
                        }
                    ],
                    "attics": [
                        {
                            "floorAssemblyEffectiveRValue": 49,
                            "id": "attic-insulation-1"
                        },
                        {
                            "floorAssemblyEffectiveRValue": 49,
                            "id": "attic-insulation-2"
                        }
                    ]
                },
                "buildingSummary": {
                    "conditionedFloorArea": 2854,
                    "yearBuilt": 2023,
                    "bedroomsCount": 4,
                    "averageCeilingHeight": 8
                }
            },
            "addressComponents": {
                "zipCode": "22911-5640",
                "addressLine1": "3520 Thicket Run Pl",
                "stateAbbreviation": "VA",
                "city": "Charlottesville"
            }
        }
    }
}```