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

Deployment creation fails with no usable error #266

Closed
matt-fff opened this issue Jan 17, 2025 · 2 comments
Closed

Deployment creation fails with no usable error #266

matt-fff opened this issue Jan 17, 2025 · 2 comments

Comments

@matt-fff
Copy link

Today updating and creating deployments suddenly stopped working.

@ Updating....
 +  vercel:index:Project test-project creating (0s) 
@ Updating....
 +  vercel:index:Project test-project created (0.88s) 
 +  vercel:index:Deployment test-deployment creating (0s) 
@ Updating....
 +  vercel:index:Deployment test-deployment creating (0s) error: Error creating deployment: Could not create deployment, unexpected error:  - 
 +  vercel:index:Deployment test-deployment **creating failed** error: Error creating deployment: Could not create deployment, unexpected error:  - 
    pulumi:pulumi:Stack storefront-test2 running error: update failed

The error is nondescript; when you dig deeper, it turns out to be unknown errors that Pulumi doesn't know how to represent.

I0116 18:48:57.522937 1586969 provider_plugin.go:2128] provider received rpc error `Unknown`: `Error creating deployment: Could not create deployment, unexpected error:  - `
I0116 18:48:57.523390 1586969 provider_plugin.go:2132] rpc error kind `Unknown` may not be recoverable
I0116 18:48:57.523613 1586969 provider_plugin.go:1252] Provider[vercel, 0xc0019d0910].Create(urn:...) failed: Error creating deployment: Could not create deployment, unexpected error:  -
I0116 18:48:57.523800 1586969 eventsink.go:86] eventSink::Error(<{%reset%}>Error creating deployment: Could not create deployment, unexpected error:  - <{%reset%}>)

Here's the Pulumi code that generates that error: https://github.com/pulumi/pulumi/blob/9962fede181431da693315f13b1f806a5bd44435/sdk/go/common/resource/plugin/provider_plugin.go#L2132

Here's a minimal version of the project I used to generate the error:

from dotenv import load_dotenv
import pulumi
import pulumiverse_vercel as vercel
import os

load_dotenv()

team_id = os.environ["VERCEL_TEAM_ID"]

vercel_project = vercel.Project(
    "test-project",
    team_id=team_id,
    framework="sveltekit-1",
    serverless_function_region="sfo1",  # Set the region to San Francisco, close to Supabase DB
)

site_path = "../"

# Get project files
project_files = vercel.get_project_directory(site_path)


# Add a Vercel deployment
vercel_deployment = vercel.Deployment(
    "test-deployment",
    team_id=team_id,
    project_id=vercel_project.id,
    files=project_files.files,
    path_prefix=site_path,
    production=True,
)

pulumi.export("vercel_deployment_url", vercel_deployment.url)

^ This was working as expected yesterday.

@matt-fff
Copy link
Author

Seems likely this issue is upstream: vercel/terraform-provider-vercel#259

@dglsparsons
Copy link

Hi, @matt-fff - this was indeed an upstream issue. There was a regression in the Deployments API. It should be fully resolved now!

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