{"record":{"id":"912edc992a1eceb5","repo":"expo/expo","slug":"asyncstorage-expected-array-of-key-value-pairs-a","errorCode":null,"errorMessage":"[AsyncStorage] Expected array of key-value pairs as first argument to multiSet","messagePattern":"\\[AsyncStorage\\] Expected array of key-value pairs as first argument to multiSet","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"apps/expo-go/modules/@react-native-async-storage/async-storage/src/helpers.ts","lineNumber":12,"sourceCode":"import type { ErrorLike } from \"./types\";\n\nexport function checkValidArgs(\n  keyValuePairs: readonly unknown[],\n  callback: unknown\n) {\n  if (\n    !Array.isArray(keyValuePairs) ||\n    keyValuePairs.length === 0 ||\n    !Array.isArray(keyValuePairs[0])\n  ) {\n    throw new Error(\n      \"[AsyncStorage] Expected array of key-value pairs as first argument to multiSet\"\n    );\n  }\n\n  if (callback && typeof callback !== \"function\") {\n    if (Array.isArray(callback)) {\n      throw new Error(\n        \"[AsyncStorage] Expected function as second argument to multiSet. Did you forget to wrap key-value pairs in an array for the first argument?\"\n      );\n    }\n\n    throw new Error(\n      \"[AsyncStorage] Expected function as second argument to multiSet\"\n    );\n  }\n}\n\nexport function checkValidInput(...input: unknown[]) {","sourceCodeStart":1,"sourceCodeEnd":30,"githubUrl":"https://github.com/expo/expo/blob/b09195aac27c9e4a63daaf12dcb6f00b6b2e08ee/apps/expo-go/modules/@react-native-async-storage/async-storage/src/helpers.ts#L1-L30","documentation":"Error \"[AsyncStorage] Expected array of key-value pairs as first argument to multiSet\" thrown in expo/expo.","triggerScenarios":"Thrown at apps/expo-go/modules/@react-native-async-storage/async-storage/src/helpers.ts:12 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"b09195aac27c9e4a63daaf12dcb6f00b6b2e08ee","analyzedAt":"2026-08-12T15:59:58.304Z","schemaVersion":2},"datasetVersion":"2026-08-12T18:17:37.767Z"}