Title: An error occurs when `creating_batch` using the Python SDK. · Issue #142 · thirdweb-dev/python-sdk · GitHub
Open Graph Title: An error occurs when `creating_batch` using the Python SDK. · Issue #142 · thirdweb-dev/python-sdk
X Title: An error occurs when `creating_batch` using the Python SDK. · Issue #142 · thirdweb-dev/python-sdk
Description: The error occurs in the thirdweb\core\classes\erc_721.py file. TypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given I checked that an error occurred in the code below. batch = self._storage.upload_me...
Open Graph Description: The error occurs in the thirdweb\core\classes\erc_721.py file. TypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given I checked that an error occurred in the cod...
X Description: The error occurs in the thirdweb\core\classes\erc_721.py file. TypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given I checked that an error occurred in the cod...
Opengraph URL: https://github.com/thirdweb-dev/python-sdk/issues/142
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"An error occurs when `creating_batch` using the Python SDK.","articleBody":"The error occurs in the thirdweb\\core\\classes\\erc_721.py file.\r\nTypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given\r\n\r\nI checked that an error occurred in the code below.\r\n```\r\nbatch = self._storage.upload_metadata_batch(\r\n [metadata.to_json() for metadata in metadatas],\r\n start_file_number,\r\n self._drop._contract_abi.contract_address,\r\n self._drop.get_signer_address(),\r\n )\r\n```\r\n`Storage.upload_metadata_batch` requires only two parameters, but four are entered in the code. (excluding self parameters)\r\n\r\nUnnecessary parameters have been deleted from storage.upload_metadata_batch according to the error message.\r\n\r\nAnd I checked that it works normally.\r\nThe development team requests a revision of the library in this SDK.\r\n\r\n\r\n\r\n\r\nReported from [Discord](https://discord.com/channels/834227967404146718/1143552890938597446) by user.\r\n\r\nTagging @adam-maj to review the bug. Thanks!","author":{"url":"https://github.com/warengonzaga","@type":"Person","name":"warengonzaga"},"datePublished":"2023-08-30T01:32:37Z","url":"https://github.com/thirdweb-dev/python-sdk/issues/142"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1cf6dd58-e531-8fbb-8fd8-90184e7df735 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E638:1148D3:68F1C4F:855C128:6B030A2D |
| html-safe-nonce | 56021157003b00cb9ecc9cc953f87268ba4d10339462f4a657bc0ba66c08b62c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNjM4OjExNDhEMzo2OEYxQzRGOjg1NUMxMjg6NkIwMzBBMkQiLCJ2aXNpdG9yX2lkIjoiMzgyNDczMjI5NjU4NjY2MDM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f3a32155a6d39bf7d21c932e175e45983c77d595833c17e71a444d258a01ee33 |
| hovercard-subject-tag | issue:1872735573 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/thirdweb-dev/python-sdk/142/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9eed27e76292c1e29dc6a33a407a2fe9a1eed2022e8c287722a145f553dc2c92/thirdweb-dev/python-sdk/issues/142 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9eed27e76292c1e29dc6a33a407a2fe9a1eed2022e8c287722a145f553dc2c92/thirdweb-dev/python-sdk/issues/142 |
| og:image:alt | The error occurs in the thirdweb\core\classes\erc_721.py file. TypeError: upload_metadata_batch() takes from 2 to 3 positional arguments but 5 were given I checked that an error occurred in the cod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | warengonzaga |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/thirdweb-dev/python-sdk git https://github.com/thirdweb-dev/python-sdk.git |
| octolytics-dimension-user_id | 79496167 |
| octolytics-dimension-user_login | thirdweb-dev |
| octolytics-dimension-repository_id | 414355482 |
| octolytics-dimension-repository_nwo | thirdweb-dev/python-sdk |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 414355482 |
| octolytics-dimension-repository_network_root_nwo | thirdweb-dev/python-sdk |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width