Giter VIP home page Giter VIP logo

Comments (14)

BovBrew avatar BovBrew commented on August 17, 2024 3

I got stuck with the same issue but I went to "Deploy" under workers and edited. I didn't actually do anything I just deleted lines and added it back. When you commit the changes it auto deploys and it worked.

from unifi-ddns.

Rubeast avatar Rubeast commented on August 17, 2024 1

I also solved it by editing the deploy.yml (just add some empty lines and delete them) on my github page and re-executing the "Deploy the Worker" step.

Thx @BovBrew !

from unifi-ddns.

subtrusion avatar subtrusion commented on August 17, 2024 1

i solved by editing my deploy.yml as well- make sure your api key/account info is correct (the worker deployment workflow might not properly insert the values for you when you initiate the fork)

from unifi-ddns.

MatthewA1 avatar MatthewA1 commented on August 17, 2024 1

@Rubeast The PR I made was merged, so you should be able to just run the workflow manually from the Actions page now. You'll see a notice and button that look like this:
image

from unifi-ddns.

renekcl avatar renekcl commented on August 17, 2024

I checked the actions in Github and no action was created. I have now added the action manually in Github (action -> new workflow) and inserted the code of the deploy.yml. Now I see two workflows in Github.

image

Under Cloudflare Workers & Pages "unifi-cloudflare-ddns" was created. Does this correspond to what the Click to Deploy process should do?

from unifi-ddns.

kmax9981 avatar kmax9981 commented on August 17, 2024

I too get the same "Project had an error" when deploying, The API did not have a worker option by itself, there were several worker options for the API so I added them all just to test. I followed all the instructions listed and do not know where to go from here.

from unifi-ddns.

MatthewA1 avatar MatthewA1 commented on August 17, 2024

I wonder if this is somehow related to the repository name not being the same as the worker name. I assume the "Deploy with Workers" tool does some initial manual deployment since the action would not ever run immediately after being activated once forked.
The message says:

Congratulations, unifi-ddns is now deploying!

However, the actual package name is unifi-cloudflare-ddns:
https://github.com/workerforce/unifi-ddns/blob/f9f695ab9599c2271b405def96360196d5533071/wrangler.toml#L1

from unifi-ddns.

JBlaz avatar JBlaz commented on August 17, 2024

I am also getting this error. The JSON response that comes in when error appears is:

{
  "message": "Not Found",
  "documentation_url": "https://docs.github.com/rest"
}

Not sure what to do from here but I have been trying for several days with no luck. Any help would be much appreciated.

from unifi-ddns.

JBlaz avatar JBlaz commented on August 17, 2024

I checked the actions in Github and no action was created. I have now added the action manually in Github (action -> new workflow) and inserted the code of the deploy.yml. Now I see two workflows in Github.

image

Under Cloudflare Workers & Pages "unifi-cloudflare-ddns" was created. Does this correspond to what the Click to Deploy process should do?

I did this same thing. Deleted the one I created and it was mostly working from there. I created one with no content just a worker that did nothing and it worked fine after that. Something must have changed with GitHub and how workers are enabled.

from unifi-ddns.

norimicry avatar norimicry commented on August 17, 2024

Also unable to use the Click to Deploy option

from unifi-ddns.

toonamowasstolen avatar toonamowasstolen commented on August 17, 2024

Was not able to get the click to deploy to work either. There was no information on the error either. when i went to actions it shows no runs yet.

so i tried the wrangler option and deploy gave an errror the entry-point file was not found.

so i tried wrangler dev and that created some files and when i opened in a browser it gave an error to use https even though it was using https. after that deploy worked but every time i visit the worker through cloudflare it use shows not found.

i'm probably doing something wrong but have no idea where to start or look.

from unifi-ddns.

MatthewA1 avatar MatthewA1 commented on August 17, 2024

It seems like the solution is to just add workflow_dispatch to the workflow so that you can manually run the deployment once. Having users manually edit a file just to force a workflow to run seems like a recipe for disaster if they ever want to contribute back to this repo from their forks.
@willswire It's a one line change, but I opened a PR since this issue has already been closed

from unifi-ddns.

Rubeast avatar Rubeast commented on August 17, 2024

Yeah. I don't understand why it is being marked as completed. What we had to do is more a workaround.
@willswire, are you expecting that every user needs to edit the deploy.yml file?

from unifi-ddns.

willswire avatar willswire commented on August 17, 2024

The PR by @MatthewA1 should fix this. Users shouldn't need to edit the deploy.yml file, but they will need to set their own API key and Account ID in their GitHub project fork's settings (under Actions secrets and variables)

from unifi-ddns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.