Skip to content

Scheduler endlessly prints "ValueError: source code string cannot contain null bytes" #31519

Answered by potiuk
safronau asked this question in General
Discussion options

You must be logged in to vote

Yes. Your DAG code contains null bytes. Probably you have a file that is not ignored with .airflowignore in DAG folder - most likely a binary file (zip?) with .py extension. remove those. You can also try to remove all files, and add them one-by-one (or better bisect and add half files see if fail, when do, remove them and add half of those etc. This will allow you to pin-point the culprit quickly.

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@safronau
Comment options

Answer selected by safronau
Comment options

You must be logged in to vote
1 reply
@potiuk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug This is a clearly a bug area:core needs-triage label for new issues that we didn't triage yet
3 participants
Converted from issue

This discussion was converted from issue #31513 on May 24, 2023 18:45.