Question

Trigger Function schedule error from CLI

I am working of a custom digital ocean function which i want to add a scheduler, to run at a custom time.

parameters: {}
environment: {}
packages:
    - name: sample
      shared: false
      environment: {}
      parameters: {}
      annotations: {}
      functions:
        - name: hello
          binary: false
          main: ""
          runtime: python:default
          web: true
          triggers:
          - name: trigger-hello
            sourceType: scheduler
            sourceDetails:
              cron: "* * * * *"
          webSecure: false
          parameters: {}
          environment: {}
          annotations: {}
          limits: {}

but i keep getting this error

Deployed functions ('doctl sls fn get <funcName> --url' for URL):
  - sample/hello
Failures:
Error: While deploying while deploying trigger 'trigger-hello': Request failed with status code 401
Show comments

Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
July 4, 2023

Hey @segunsakaaiyedun,

As my colleague Matt suggested in the comment section, an you open a support ticket, you can do this via the link here:

https://www.digitalocean.com/support/

With Scheduled Functions being in beta right now, we might not be able to troubleshoot the issue without knowing private information like your account username or Functions namespace ID. Thanks!

Hope that helps!

- Bobby.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel