Closed damyo closed 3 years ago
@damyo It appears you are using an old version of the CLI. Could you please try with the latest version (1.1.2) ?
I successfully uploaded a 405MB archive while testing with the latest version.
@pimartin You were right. In the guide document, it was written as npx @getmeli/cli@next upload
, but it was solved by modifying this to npx @getmeli/cli@latest upload
. Thanks. But right away I ran into a new problem... :(
fv-az32-67 2517 2021-01-17T16:02:32.467Z info meli.cli:upload Uploading release to https://xxx.yyy.zzz...
Error: r]: write EPROTO 139829632739200:error:14094438:SSL routines:ssl3_read_bytes:tlsv1 alert internal error:../deps/openssl/openssl/ssl/record/rec_layer_s3.c:1544:SSL alert number 80
This is the setting of my GitHub Actions.
name: main
on: [ push ]
env:
MELI_SITE: "xxx"
jobs:
build:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- name: "publish"
run: |
npx @getmeli/cli@latest upload \
--url "https://xxx.yyy.zzz" \
--site "$MELI_SITE" \
--token "$MELI_TOKEN" \
--release "$GITHUB_SHA" \
./
env:
MELI_TOKEN: "xxx"
And this is my Advanced DNS settings. https://imgur.com/ApBx8B2
If you have any idea, please let me know. It may feel difficult because I lack experience, but I want the document to be more detailed and kind.
@damyo I just saw that in "how to upload a site" Github Actions section that the example still used @next
, that was misleading, thanks for pointing this out !
Regarding the SSL problem, this is really strange, I'll take a look at get back to you. Don't worry, we're here to help the best we can.
@gempain There is one more thing I'd like to check out about the errors in the guide.
- name: "build"
run |
npm ci
npm run build
I think the :
is missing after the run, right?
Thanks for actively helping me.
@damyo
@gempain There is one more thing I'd like to check out about the errors in the guide.
- name: "build" run | npm ci npm run build
I think the
:
is missing after the run, right? Thanks for actively helping me.
Yes, that's a good catch too ! I just pushed a fix 😄 When you see things like this, don't hesitate opening issues or even submitting a pull request in our docs repository as I might not be around to fix it right away 😄
@damyo as far as I can tell, your SSL problem seems to come from different versions of the SSL protocol being used. Your Ubuntu version seems recent, so I don't think that's the issue, but maybe your server is serving Meli with an old SSL version ? Or maybe it's trying to server HTTP under HTTPS ? Honestly, I'm bailing out here, I'm sorry I can't be of any better help to you 😞 !
I'm closing this issue as I think the original title has been resolved, but feel free to open new issues as you go along. We'll be around to help. You may continue to reply, we'll reopen if needed.
@damyo If the issue doesn't seem to come from your side and you still need help investigating the problem, feel free to create another issue with as much information on your setup as possible, like (reverse) proxies you might be using. I will have another look and see if I can help.
@gempain @pimartin I found the cause of my problem. In the example file on GitHub Actions
-name: "publish"
run: |
npx @getmeli/cli upload \
--url "https://cloud.meli.sh" \
I thought the --url
above was the address I registered in the settings of the site I created in meli.
However, it was actually my meli site address, https://meli.my-company.com
.
The address https://cloud.meli.sh
was unfamiliar and difficult to understand what it meant.
Anyway, I am very happy that it is finally working properly.
It wasn't easy, but it's worth it.
For reference, in my case npx @getmeli/cli upload
caused another type of problem.
Only npx @getmeli/cli@latest
worked fine.
@damyo I am thrilled to know that this had been resolved ! And also, thank you so much for the kind words. I say this often to people, but trust me, when someone shows appreciation of our work, it truly makes us proud and motivates us to bring you the best we can.
Thanks also for providing feedback on the docs. I just pushed a for using meli.my-company.com
instead of cloud.meli.sh
, I hope it will avoid issues in the future.
Regarding the npx
issue, it's really strange because I'm not seeing any issues on my end:
$ npx @getmeli/cli
npx: installed 86 in 7.858s
Meli CLI v1.1.2 - 2020-12-23T12:53:18.546Z - 2b3ea929c4b0f315f058ed9885669aecbc7b22bf
Unknown command "", see --help
Both @getmeli/cli
and @getmeli/cli@latest
should basically point to the same thing. If you look on Npm, you'll see that 1.1.2
is the latest
version:
Perhaps your cache is behaving strangely ?
I tried to upload the site through GitHub Actions, but it fails with an error. This error occurs during the publish phase and everything else goes well.
✅ Set up job ✅ Run actions ✅ checkout@v2 ✅ Run actions ✅ setup-node@v1 ❌ publish ✅ Post Run actions/checkout@v2 ✅ Complete Job
From what I have looked at, it is already defined as
maxBodyLength: Infinity
in themeli-cli/src/commons/axios/axios.ts
file, so I don't know which part is the problem. And there doesn't seem to be an option available formaxBodyLength
other thantoken, site, url, directory, release, branch
, so am I missing something?Please refer to my failure log.