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
I have tried to run the backend project but got this while running the test cases for location. Could anyone help me with this?
`cabal run lib/location-updates
Build profile: -w ghc-9.2.7 -O1
In order, the following will be built (use -v for more details):
location-updates-0.1.0.0 (test:location-updates-tests) (first run)
Preprocessing test suite 'location-updates-tests' for location-updates-0.1.0.0..
Building test suite 'location-updates-tests' for location-updates-0.1.0.0..
[3 of 6] Compiling Utils
test/src/Utils.hs:65:11: error:
* No instance for (HasField "requestId" AppEnv (Maybe Text))
arising from a use of addAuthManagersToFlowRt' * In the second argument of ($)', namely addAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)]' In a stmt of a 'do' block: flowRt' <- runFlowR flowRt appEnv $ addAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)] In the expression: do flowRt' <- runFlowR flowRt appEnv $ addAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)] runFlowR flowRt' appEnv $ withLogTag tag flow | 65 | addAuthManagersToFlowRt flowRt [(Just defaultHttpClientOptions.timeoutMs, HMS.singleton "default" defaultManagerSettings)]
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have tried to run the backend project but got this while running the test cases for location. Could anyone help me with this?
`cabal run lib/location-updates
Build profile: -w ghc-9.2.7 -O1
In order, the following will be built (use -v for more details):
Preprocessing test suite 'location-updates-tests' for location-updates-0.1.0.0..
Building test suite 'location-updates-tests' for location-updates-0.1.0.0..
[3 of 6] Compiling Utils
test/src/Utils.hs:65:11: error:
* No instance for (HasField "requestId" AppEnv (Maybe Text))
arising from a use of
addAuthManagersToFlowRt' * In the second argument of
($)', namelyaddAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)]' In a stmt of a 'do' block: flowRt' <- runFlowR flowRt appEnv $ addAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)] In the expression: do flowRt' <- runFlowR flowRt appEnv $ addAuthManagersToFlowRt flowRt [(Just (getField @"timeoutMs" defaultHttpClientOptions), HMS.singleton "default" defaultManagerSettings)] runFlowR flowRt' appEnv $ withLogTag tag flow | 65 | addAuthManagersToFlowRt flowRt [(Just defaultHttpClientOptions.timeoutMs, HMS.singleton "default" defaultManagerSettings)]
Beta Was this translation helpful? Give feedback.
All reactions