next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

neo4j adapter + strava provider error

Open m1stermanager opened this issue 2 years ago • 0 comments

Adapter type

@next-auth/neo4j-adapter

Environment

System: OS: macOS 11.6 CPU: (8) x64 Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz Memory: 427.27 MB / 8.00 GB Shell: 5.8 - /bin/zsh Binaries: Node: 16.15.0 - /usr/local/bin/node Yarn: 1.17.3 - /usr/local/bin/yarn npm: 8.5.5 - /usr/local/bin/npm Browsers: Chrome: 101.0.4951.54 Firefox: 76.0.1 Safari: 14.1.2 npmPackages: next: 12.1.5 => 12.1.5 next-auth: ^4.3.4 => 4.3.4 react: 18.1.0 => 18.1.0

Reproduction URL

https://github.com/m1stermanager/strava-neo-bug

Describe the issue

whenever using the neo4j adapter w/ the strava provider, the following error is thrown:

Property values can only be of primitive types or arrays thereof. Encountered: Map{country -> String("United States"), <additional properties from my personal strava profile>\n + '\n' + ' at captureStacktrace (/Users///src/node_modules/neo4j-driver-core/lib/result.js:239:17)\n' + ' at new Result (/Users///src/node_modules/neo4j-driver-core/lib/result.js:59:23)\n' + ' at newCompletedResult (/Users///src/node_modules/neo4j-driver-core/lib/transaction.js:433:12)\n' + ' at Object.run (/Users///src/node_modules/neo4j-driver-core/lib/transaction.js:287:20)\n' + ' at Transaction.run (/Users///src/node_modules/neo4j-driver-core/lib/transaction.js:137:34)\n' + ' at /Users///src/node_modules/@next-auth/neo4j-adapter/dist/utils.js:60:70\n' + ' at TransactionExecutor._safeExecuteTransactionWork (/Users///src/node_modules/neo4j-driver-core/lib/internal/transaction-executor.js:92:26)\n' + ' at TransactionExecutor._executeTransactionInsidePromise (/Users///src/node_modules/neo4j-driver-core/lib/internal/transaction-executor.js:83:34)\n' + ' at /Users///src/node_modules/neo4j-driver-core/lib/internal/transaction-executor.js:40:19\n' + ' at new Promise ()', name: 'Neo4jError'

How to reproduce

use the strava provider w/ the neo4j adapter

Expected behavior

provider and adapter would be expected to work such that appropriate nodes are created in DB

m1stermanager avatar May 07 '22 19:05 m1stermanager