Back

[SOLVED] Cannot Deploy

  • 0
  • Functions
  • Web
Kiniekop
21 Aug, 2023, 17:37

Hi guys, I created app on Appwrite that is calling to the number and playing RickRoll. Unfortunetaly I cannot deploy the function couse I get error:

TypeScript
  Determining projects to restore...
  Restored /usr/local/src/DotNetRuntime.csproj (in 22.83 sec).
/usr/local/src/Wrapper.cs(30,24): error CS1061: 'RuntimeRequest' does not contain a definition for 'Env' and no accessible extension method 'Env' accepting a first argument of type 'RuntimeRequest' could be found (are you missing a using directive or an assembly reference?) [/usr/local/src/DotNetRuntime.csproj]
/usr/local/src/Wrapper.cs(31,23): error CS1061: 'RuntimeRequest' does not contain a definition for 'Env' and no accessible extension method 'Env' accepting a first argument of type 'RuntimeRequest' could be found (are you missing a using directive or an assembly reference?) [/usr/local/src/DotNetRuntime.csproj]
/usr/local/src/Wrapper.cs(32,31): error CS1061: 'RuntimeRequest' does not contain a definition for 'Env' and no accessible extension method 'Env' accepting a first argument of type 'RuntimeRequest' could be found (are you missing a using directive or an assembly reference?) [/usr/local/src/DotNetRuntime.csproj]

Does anybody know what is happening?

TL;DR
User cannot deploy their app on Appwrite due to a Docker error. They receive the error message "RuntimeRequest does not contain a definition for 'Env'" and are seeking assistance to resolve the issue. Solution: Change `req.Env` to `req.Variables` in the code. Additionally, the user is advised to format their code/logs using three backticks before and after to improve readability.
safwan
21 Aug, 2023, 17:44

Please use 3 backticks before and after your code/logs to format it (makes it easier to read). https://www.markdownguide.org/extended-syntax/#syntax-highlighting

safwan
21 Aug, 2023, 17:45
joeyouss
22 Aug, 2023, 07:05

I think this is the app by @Aditya Oberai ?

Aditya Oberai
22 Aug, 2023, 07:32

@Kiniekop can you show the code once?

Also, please change req.Env to rwq.Variables. This was a change made to the RuntimeRequest class a while after the blog was written.

I'll be updating it after the next release.

Kiniekop
22 Aug, 2023, 20:08

I changed req.Env to req.Variables and it's working! Thank you for help and for the whole article πŸ˜‰ That's my first app on docker and I had bunch of fun while I was making it πŸ˜„

Aditya Oberai
22 Aug, 2023, 20:13

That's awesome! πŸ₯³

D5
22 Aug, 2023, 20:30

Why you rickrolled me?

joeyouss
22 Aug, 2023, 22:04

πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚ πŸ˜‚

joeyouss
22 Aug, 2023, 22:04

[SOLVED] Cannot Deploy

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more