andysmithfal / polestar.js

5 stars 0 forks source link

QL query is now failing #3

Closed kaohlive closed 9 months ago

kaohlive commented 9 months ago

I now get the responses: message: 'Cannot query field "getOdometerData" on type "Query". Did you mean "getDocumentMetadata"?', extensions: { code: 'GRAPHQL_VALIDATION_FAILED', exception: [Object] }

message: 'Cannot query field "getBatteryData" on type "Query".', extensions: { code: 'GRAPHQL_VALIDATION_FAILED', exception: [Object] }

So it looks like this nice way of interacting with the Polestar is now broken already :(

andysmithfal commented 9 months ago

Looks like Polestar changed the endpoint today. Should be fixed in latest commit #e4fe1e7

kaohlive commented 9 months ago

Excellent, tested and it works again now.