-
Notifications
You must be signed in to change notification settings - Fork 547
Open
Labels
Stalepriority: mediumImportant but not urgent; Workaround availableImportant but not urgent; Workaround availablestatus: work in progressTwilio or the community is in the process of implementingTwilio or the community is in the process of implementingtype: bugbug in the librarybug in the library
Description
Here is the code I am using to store/retrieve data from my sync maps.
await client.sync.v1
.services(SYNC_SERVICE_SID)
.syncMaps(ENVIRONMENT_MAP_SID)
.syncMapItems.create({
key: "https://test.example.com",
data: {
lastUpdated: new Date().toISOString(),
},
});
// Retrieval
await client.sync.v1
.services(SYNC_SERVICE_SID)
.syncMaps(ENVIRONMENT_MAP_SID)
.syncMapItems("https://test.example.com")
.fetch();Despite me double checking the key does indeed exist on the sync map, I can't access it via the API. I get the following error:
/Users/harshbaid/Desktop/twilio/node_modules/twilio/lib/rest/sync/v1/service/syncMap/syncMapItem.js:35
throw new Error("Parameter 'key' is not valid.");
^
Error: Parameter 'key' is not valid.
at new SyncMapItemContextImpl (/Users/harshbaid/Desktop/twilio/node_modules/twilio/lib/rest/sync/v1/service/syncMap/syncMapItem.js:35:19)
Metadata
Metadata
Assignees
Labels
Stalepriority: mediumImportant but not urgent; Workaround availableImportant but not urgent; Workaround availablestatus: work in progressTwilio or the community is in the process of implementingTwilio or the community is in the process of implementingtype: bugbug in the librarybug in the library