NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

[Bug] netlify现在无法发布最新版,只要设置变量就报错

Open nowindnowave opened this issue 1 year ago • 1 comments

Bug Description

10:06:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:06:13 AM: (Netlify Build completed in 2m 28.1s) 10:06:13 AM: /opt/build-bin/build: line 142: [: ****: integer expression expected 10:06:13 AM: /opt/build-bin/build: line 148: exit: ****: numeric argument required 10:06:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2

我只要在环境变量添加CODE或BASE_URL就会报错,只添加OPENAI_API_KEY不会报错可以正常使用,

Steps to Reproduce

10:06:13 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2 10:06:13 AM: (Netlify Build completed in 2m 28.1s) 10:06:13 AM: /opt/build-bin/build: line 142: [: ****: integer expression expected 10:06:13 AM: /opt/build-bin/build: line 148: exit: ****: numeric argument required 10:06:13 AM: Build failed due to a user error: Build script returned non-zero exit code: 2

我只要在环境变量添加CODE或BASE_URL就会报错,只添加OPENAI_API_KEY不会报错可以正常使用,

Expected Behavior

netlify现在无法发布最新版,只要设置变量就报错

Screenshots

No response

Deployment Method

  • [ ] Docker
  • [ ] Vercel
  • [ ] Server

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

No response

Smartphone OS

No response

Smartphone Browser

No response

Smartphone Browser Version

No response

Additional Logs

No response

nowindnowave avatar May 15 '24 03:05 nowindnowave

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] netlify cannot release the latest version now, and an error will be reported whenever variables are set.

Issues-translate-bot avatar May 15 '24 03:05 Issues-translate-bot