-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Error 405 Method Not Allowed for create NFT, create account etc. #51
Comments
How strange, let me look into this for you. |
Ok, I've managed to duplicate the issue, I believe it is related to this. vercel/next.js#46375 (comment) (this is interesting because it seems like an intermittent issue) |
Hi Matt,
Wow thanks so much for the rapid response!
I had a look at the Vercel logs and saw this line:
Error - Your project has an older version of ESLint installed (6.8.0).
Please upgrade to ESLint version 7 or above
I have included the rest of the logs as well in case you spot anything else.
I did a redeploy in Vercel and saw the same warning and I get the same 405
error on nft create.
It would be great if you can advise what I need to do next. I was just
following the one-click approach.
Regards
Rod
[08:56:53.509] Running build in Washington, D.C., USA (East) – iad1
[08:56:53.613] Cloning github.com/RossConsultingPrivate/serverless-hedera
(Branch: main, Commit: 42ef340)
[08:56:53.964] Previous build cache not available
[08:56:54.090] Cloning completed: 475.742ms
[08:56:54.297] Running "vercel build"
[08:56:54.791] Vercel CLI 33.2.0
[08:56:55.142] Installing dependencies...
[08:56:55.484] yarn install v1.22.17
[08:56:55.557] [1/4] Resolving packages...
[08:56:55.866] [2/4] Fetching packages...
[08:57:03.460] warning ***@***.***: Invalid bin entry for "🚘" (in
"ipfs-car").
[08:57:11.577] [3/4] Linking dependencies...
[08:57:11.580] warning "next > styled-jsx > @***@***.***"
has unmet peer dependency ***@***.***/core@^7.0.0-0".
[08:57:11.580] warning " > @***@***.***"
has unmet peer dependency ***@***.***/core@^7.0.0-0".
[08:57:11.580] warning " > @***@***.***" has
unmet peer dependency ***@***.***/core@^7.0.0-0".
[08:57:11.580] warning ***@***.***/plugin-transform-react-jsx >
@***@***.***" has unmet peer dependency ***@***.***/core@
^7.0.0-0".
[08:57:17.455] [4/4] Building fresh packages...
[08:57:17.877] Done in 22.40s.
[08:57:17.906] Detected Next.js version: 12.0.7
[08:57:17.908] Running "yarn run build"
[08:57:18.098] yarn run v1.22.17
[08:57:18.124] $ next build
[08:57:18.792] Attention: Next.js now collects completely anonymous
telemetry regarding usage.
[08:57:18.792] This information is used to shape Next.js' roadmap and
prioritize features.
[08:57:18.793] You can learn more, including how to opt-out if you'd not
like to participate in this anonymous program, by visiting the following
URL:
[08:57:18.793] https://nextjs.org/telemetry
[08:57:18.793]
[08:57:18.812] Browserslist: caniuse-lite is outdated. Please run:
[08:57:18.813] npx ***@***.*** --update-db
[08:57:18.813]
[08:57:18.813] Why you should do it regularly:
[08:57:18.813]
https://github.com/browserslist/browserslist#browsers-data-updating
[08:57:18.855] info - Checking validity of types...
[08:57:19.118] error - Your project has an older version of ESLint
installed (6.8.0). Please upgrade to ESLint version 7 or above
[08:57:19.123] info - Creating an optimized production build...
[08:57:19.154] info - Disabled SWC as replacement for Babel because of
custom Babel configuration ".babelrc"
https://nextjs.org/docs/messages/swc-disabled
[08:57:19.400] Browserslist: caniuse-lite is outdated. Please run:
[08:57:19.400] npx ***@***.*** --update-db
[08:57:19.400]
[08:57:19.400] Why you should do it regularly:
[08:57:19.400]
https://github.com/browserslist/browserslist#browsers-data-updating
[08:57:19.742] info - Using external babel configuration from
/vercel/path0/.babelrc
[08:57:31.247] info - Compiled successfully
[08:57:31.248] info - Collecting page data...
[08:57:33.236] info - Generating static pages (0/3)
[08:57:33.264] info - Generating static pages (3/3)
[08:57:33.276] info - Finalizing page optimization...
[08:57:33.279]
[08:57:33.299] Page Size First
Load JS
[08:57:33.299] ┌ ○ / 3.74 kB
74.6 kB
[08:57:33.299] ├ └ css/613fafb658682558.css 792 B
[08:57:33.300] ├ /_app 0 B
70.9 kB
[08:57:33.300] ├ ○ /404 3.08 kB
74 kB
[08:57:33.300] ├ λ /api/account/[id]/[token_id] 0 B
70.9 kB
[08:57:33.300] ├ λ /api/account/[id]/holdings/[token_ids] 0 B
70.9 kB
[08:57:33.300] ├ λ /api/account/balance 0 B
70.9 kB
[08:57:33.300] ├ λ /api/account/create 0 B
70.9 kB
[08:57:33.300] ├ λ /api/consensus/message 0 B
70.9 kB
[08:57:33.300] ├ λ /api/consensus/topic 0 B
70.9 kB
[08:57:33.300] ├ λ /api/consensus/topic/[id] 0 B
70.9 kB
[08:57:33.300] ├ λ /api/inscription/[tick]/burn 0 B
70.9 kB
[08:57:33.300] ├ λ /api/inscription/[tick]/mint 0 B
70.9 kB
[08:57:33.300] ├ λ /api/inscription/[tick]/transfer 0 B
70.9 kB
[08:57:33.300] ├ λ /api/inscription/deploy 0 B
70.9 kB
[08:57:33.300] ├ λ /api/nft 0 B
70.9 kB
[08:57:33.301] ├ λ /api/nft/[token_id]/mint 0 B
70.9 kB
[08:57:33.301] ├ λ /api/nft/batch 0 B
70.9 kB
[08:57:33.301] ├ λ /api/nft/claim 0 B
70.9 kB
[08:57:33.301] ├ λ /api/nft/metadata 0 B
70.9 kB
[08:57:33.301] ├ λ /api/nft/transfer 0 B
70.9 kB
[08:57:33.301] ├ λ /api/status 0 B
70.9 kB
[08:57:33.301] ├ λ /api/token 0 B
70.9 kB
[08:57:33.301] ├ λ /api/token/bequest 0 B
70.9 kB
[08:57:33.301] ├ λ /api/token/send 0 B
70.9 kB
[08:57:33.301] └ λ /api/webhook 0 B
70.9 kB
[08:57:33.301] + First Load JS shared by all 70.9 kB
[08:57:33.301] ├ chunks/framework-6e4ba497ae0c8a3f.js 42 kB
[08:57:33.301] ├ chunks/main-8eac6eed8f057324.js 26.8 kB
[08:57:33.301] ├ chunks/pages/_app-46237eb5a8b4228b.js 553 B
[08:57:33.301] ├ chunks/webpack-0c54995ac8bc3e0f.js 1.48 kB
[08:57:33.301] └ css/2974ebc8daa97b04.css 209 B
[08:57:33.301]
[08:57:33.302] λ (Server) server-side renders at runtime (uses
getInitialProps or getServerSideProps)
[08:57:33.302] ○ (Static) automatically rendered as static HTML (uses no
initial props)
[08:57:33.302]
[08:57:33.568] Done in 15.47s.
[08:57:33.969] Traced Next.js server files in: 358.265ms
[08:57:35.332] Created all serverless functions in: 1.361s
[08:57:35.338] Collected static files (public/, static/, .next/static):
3.459ms
[08:57:35.846] Build Completed in /vercel/output [41s]
[08:57:36.062] Deploying outputs...
[08:57:45.867]
[08:57:46.118] Deployment completed
[08:57:51.794] Uploading build cache [48.49 MB]...
[08:57:53.599] Build cache uploaded: 1.805s
…On Fri, Jan 26, 2024 at 12:52 PM Matt Smithies ***@***.***> wrote:
Screenshot.2024-01-26.at.10.50.02.png (view on web)
<https://github.com/trustenterprises/hedera-serverless-api/assets/6974163/586868b7-cbaa-431a-a406-73a9efe66a9b>
I've deployed on my end, a new version of the repository to a new vercel
installation.
And I am able to create NFTs, tokens, and Inscriptions.
I wonder if it is Vercel cold start issue, feel free to look at your logs
and test some more calls.
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJAVK2C4IKOKDK3B657QPDYQODH7AVCNFSM6AAAAABCLETZBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJRHA3DKNBRGA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hey @RossConsulting, Just wanted to doublecheck with you did you try your API with postman? Here are some screenshots of me, hitting your endpoints. Obviously, I don't know your API secret - but you should see that it gets past the "405 issue", normally 405's is a symptom of using the wrong request type, so a PUT instead of a POST. Inscription Deployment![]() Deploying of the NFT![]() As this is testnet, feel free to send me your API key (privately), and we can always change it later. |
Hi Matt,
Apologies for the radio silence, I have been battling with a wrist issue
and the doc said I should lie low for a while.
I am more than happy to send you the API key, since this is in any case
just a test environment.
How do I reach you?
Regards
Rod
…On Sat, Jan 27, 2024 at 3:33 PM Matt Smithies ***@***.***> wrote:
Hey @RossConsulting <https://github.com/RossConsulting>,
Just wanted to doublecheck with you did you try your API with postman?
Here are some screenshots of me, hitting your endpoints. Obviously, I
don't know your API secret - but you should see that it gets past the "405
issue", normally 405's is a symptom of using the wrong request type, so a
PUT instead of a POST.
Inscription Deployment Screenshot.2024-01-27.at.13.31.06.png (view on web)
<https://github.com/trustenterprises/hedera-serverless-api/assets/6974163/1f3b92d5-a69c-4700-b2a5-3269af6067e6> Deploying
of the NFT Screenshot.2024-01-27.at.13.31.34.png (view on web)
<https://github.com/trustenterprises/hedera-serverless-api/assets/6974163/5b09f108-4b58-4176-b315-3d6f827f85f6>
As this is testnet, feel free to send me your API key (privately), and we
can always change it later.
—
Reply to this email directly, view it on GitHub
<#51 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADJAVKYQRTFQ2PX3WHOSSDTYQT63BAVCNFSM6AAAAABCLETZBCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGE2TONZSGA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
My colleague and I recently tried to follow the instructions for the one click deploy on vercel but we both get a 405 Method Not Allowed when doing the create NFT or create Account calls.
Has anyone done them recently?
I have tried with https://serverless-hedera.vercel.app/ and with https://serverless-hedera-git-main-rossconsultinghts.vercel.app/. Since it is a Testnet account I am happy to provide my API key if someone wants to reproduce.
The text was updated successfully, but these errors were encountered: