{"id":2431,"date":"2022-08-30T15:24:48","date_gmt":"2022-08-30T15:24:48","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/01\/12\/getting-dynamodb-working-from-erlang-collection-of-common-programming-errors\/"},"modified":"2022-08-30T15:24:48","modified_gmt":"2022-08-30T15:24:48","slug":"getting-dynamodb-working-from-erlang-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2022\/08\/30\/getting-dynamodb-working-from-erlang-collection-of-common-programming-errors\/","title":{"rendered":"Getting DynamoDB working from Erlang-Collection of common programming errors"},"content":{"rendered":"<p>I am trying to use the Erlang ddb module to interface with amazon&#8217;s DynamoDB and I am getting a strange error while trying to set things up. I call ddb_iam:credentials() and it returns &#8216;ok&#8217;, but the ddb_iam:token() function crashes with an error as such: (this example is taken right from the manual page.<\/p>\n<pre><code>ddb_iam:credentials(AccessKey, SecretKey).\n{ok, Key, Secret, Token} = ddb_iam:token(129600).\n** exception error: bad argument\n     in function  ets:lookup\/2\n        called as ets:lookup(ibrowse_lb,{\"sts.amazonaws.com\",443})\n     in call from ibrowse:send_req\/6 (src\/ibrowse.erl, line 313)\n     in call from ddb_aws:retry\/4 (src\/ddb_aws.erl, line 50)\n     in call from ddb_iam:token\/1 (src\/ddb_iam.erl, line 63)\n8&gt; \n<\/code><\/pre>\n<p id=\"rop\"><small>Originally posted 2014-01-12 20:26:12. <\/small><\/p>","protected":false},"excerpt":{"rendered":"<p>I am trying to use the Erlang ddb module to interface with amazon&#8217;s DynamoDB and I am getting a strange error while trying to set things up. I call ddb_iam:credentials() and it returns &#8216;ok&#8217;, but the ddb_iam:token() function crashes with an error as such: (this example is taken right from the manual page. ddb_iam:credentials(AccessKey, SecretKey). [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2431","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=2431"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/2431\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=2431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=2431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=2431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}