You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im unable to use the Client.reverseGeocode correctly, I've juggled around with the request object's preperties to no result =(.
I'm using the library within a NestJs server. Judging by the error log, since the exception is thrown within the google maps package, i'm confident its an issue with the library, perhaps im wrong?...
heres the code
and this is the error log, i've put this arrows "--->" in lines i deemed important
ERROR [ExceptionsHandler] this.getEphemeralKeyInfo is not a function
--->TypeError: this.getEphemeralKeyInfo is not a function
at Object.onConnectSecure [as secure] (node:_tls_wrap:1523:25)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:207:39)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31)
at C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:79:30
at Array.forEach (<anonymous>)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:44:24)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31)
---> C:\Users\marco\Desktop\nest-sagi-app\node_modules\@googlemaps\google-maps-services-js\node_modules\axios\lib\adapters\http.js:70
--->var data = config.data;
^
--->TypeError: Cannot read properties of undefined (reading 'data')
--->at dispatchHttpRequest (C:\Users\marco\Desktop\nest-sagi-app\node_modules\@googlemaps\google-maps-services-js\node_modules\axios\lib\adapters\http.js:70:23)
at new Promise (<anonymous>)
at Object.httpAdapter [as adapter] (C:\Users\marco\Desktop\nest-sagi-app\node_modules\@googlemaps\google-maps-services-js\node_modules\axios\lib\adapters\http.js:49:10)
at C:\Users\marco\Desktop\nest-sagi-app\node_modules\@googlemaps\google-maps-services-js\src\adapter.ts:56:8
at new Promise (<anonymous>)
at Object.customAdapter [as adapter] (C:\Users\marco\Desktop\nest-sagi-app\node_modules\@googlemaps\google-maps-services-js\src\adapter.ts:54:3)
at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:207: at TransformOperationExecutor.transform (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\TransformOperationExecutor.ts:327:31) at ClassTransformer.instanceToPlain (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\ClassTransformer.ts:25:21)
at Object.classToPlain (C:\Users\marco\Desktop\nest-sagi-app\node_modules\src\index.ts:23:27)
im working with
"@googlemaps/google-maps-services-js": "^3.3.16",
i really apreciate any help i cant get
The text was updated successfully, but these errors were encountered:
Did you ever find a solution? I'm on NestJs as well. I'm logging the axios query that gives me the getEphemeralKeyInfo error and there doesn't seem to be any issue with it but the response is undefined:
After tinkering for a few hours, I was able to get things to work by simply using import { HttpService } from '@nestjs/axios';
and writing my custom api calls instead of using the google-maps-services-js library
Im unable to use the Client.reverseGeocode correctly, I've juggled around with the request object's preperties to no result =(.
I'm using the library within a NestJs server. Judging by the error log, since the exception is thrown within the google maps package, i'm confident its an issue with the library, perhaps im wrong?...
heres the code
and this is the error log, i've put this arrows "--->" in lines i deemed important
im working with
i really apreciate any help i cant get
The text was updated successfully, but these errors were encountered: