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

geting an invalid character error when using sst #4503

Closed
X1Vi opened this issue Jun 21, 2024 · 1 comment
Closed

geting an invalid character error when using sst #4503

X1Vi opened this issue Jun 21, 2024 · 1 comment

Comments

@X1Vi
Copy link

X1Vi commented Jun 21, 2024

steps to reproduce :
I just did whatever was mentioned in the next js documentation that was mentioned here

and I was given this error I think sst is itself producing this issue or maybe some other piece of code
Errors: Site ROLLBACK_COMPLETE site/RevalidationQueue: Eventual consistency check initiated CustomResourceHandler: Eventual consistency check initiated site/WarmerFunction: Eventual consistency check initiated Custom::S3AutoDeleteObjectsCustomResourceProvider: Eventual consistency check initiated LogRetentionaae0aa3c5b4d4f87b02d85b201efdd8a: Eventual consistency check initiated site/RevalidationFunction: Eventual consistency check initiated site/ImageFunction: Eventual consistency check initiated site/RevalidationInsertFunction: Eventual consistency check initiated site/RevalidationProvider/framework-onEvent: Eventual consistency check initiated site/defaultServerFunction/ServerFunction: Eventual consistency check initiated site/Distribution: Resource handler returned message: "Invalid request provided: AWS::CloudFront::Distribution: The parameter globPattern can only contain these characters: [a-zA-Z0-9_-.*$/~"'&@:?+\]. (Service: CloudFront, Status Code: 400, Request ID: )" (RequestToken: , HandlerErrorCode: InvalidRequest)

this is my sst.config.ts
import { SSTConfig } from "sst"; import { Cron, Bucket, NextjsSite } from "sst/constructs"; export default { config(_input) { return { name: "quickstart-nextjs", region: "us-east-1", }; }, stacks(app) { app.stack(function Site({ stack }) { const bucket = new Bucket(stack, "public"); const site = new NextjsSite(stack, "site", { bind: [bucket], }); new Cron(stack, "cron", { schedule: "rate(1 day)", job: { function: { bind: [bucket], handler: "functions/delete.handler", }, }, }); stack.addOutputs({ SiteUrl: site.url, }); }); }, };
this is paste to the sst.config.ts
link

@jayair
Copy link
Contributor

jayair commented Jun 23, 2024

This is SST v2 not Ion. Are you sure you followed the tutorial you linked to? Here's the repo from that example for reference: https://github.com/sst/ion/tree/dev/examples/aws-nextjs

@jayair jayair closed this as not planned Won't fix, can't repro, duplicate, stale Jun 23, 2024
@thdxr thdxr transferred this issue from sst/ion Oct 21, 2024
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

2 participants