Skip to content
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

Publishing provider with S3 storage fails - TypeError: undefined is not a function\n at saveProvider #73

Open
dimisjim opened this issue Aug 14, 2021 · 2 comments

Comments

@dimisjim
Copy link

hey there,

I have set the 2 required env vars for publishing on S3 (CITIZEN_AWS_S3_BUCKET with value the name of the bucket, CITIZEN_STORAGE with value "s3") + the service has the required permissions, but I get this error when trying to publish:

✖ publish my/provider/1.0.0
Duplicated (500)
undefined is not a function

The full in the logs:

{"level":50,"time":1628955452335,"pid":6,"hostname":"ip-some-internal-aws-hostname","name":"citizen","stack":"TypeError: undefined is not a function\n at saveProvider (/snapshot/citizen/storages/s3.js)\n at /snapshot/citizen/routes/providers.js\n at Array.map (<anonymous>)\n at Form.<anonymous> (/snapshot/citizen/routes/providers.js)","type":"Error","msg":"undefined is not a function"}

Any clue what I am doing wrong?
It works fine with local storage, if I don't set these 2 env vars.

@dimisjim dimisjim changed the title Publishing provider with S3 storage fails Publishing provider with S3 storage fails - TypeError: undefined is not a function\n at saveProvider Aug 14, 2021
@Hazurka
Copy link

Hazurka commented Feb 2, 2022

I face the same problem :)

@trix32641
Copy link

trix32641 commented Mar 10, 2022

When i built v0.4.0 i got the same error. When i use (git checkout 67ddf3f) version this error gone and i successfully uploaded provider zip file in citizen (S3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants