Back

Error 400

  • 0
  • Functions
  • Cloud
jesuswithBigD
29 Dec, 2023, 00:40

Im using potsman as performance test with 100 virtual users that executes a simple cloud function for 1 minute. Result:

11/3480 excution throws a

Error 400 Excution error : Server error Type general_argument_invaild

Why is this error happens ?

TL;DR
User is experiencing a 400 error while using a performance testing tool with a cloud function. The error occurs during POST requests with more than 50 users. The response body indicates that there is something wrong with the request. The error message suggests that there is a general argument invalid. Solution: Check the request for any errors and ensure that the function is properly handling and validating the arguments.
Drake
29 Dec, 2023, 00:53

something is wrong with your request. look at the response body

jesuswithBigD
29 Dec, 2023, 01:20

The respone body is an html code

jesuswithBigD
29 Dec, 2023, 01:20
Drake
29 Dec, 2023, 02:03

oh..wait..maybe it's your function throwing the 400 error?

jesuswithBigD
29 Dec, 2023, 02:08

No i tried also with a starter function (hello world)

15/2470 executions throws the error.

If the method is post and the users are above 50 in the postman performance test, it throws this error.

jesuswithBigD
29 Dec, 2023, 02:09

The performance test is a 1 minute long

Drake
29 Dec, 2023, 02:20

What's your project id?

jesuswithBigD
29 Dec, 2023, 02:49

shabakati

jesuswithBigD
29 Dec, 2023, 02:50

There is nothing much in the project I'm using it for testing and experimenting you will find a two functions

jesuswithBigD
29 Dec, 2023, 02:51

One is the default (hello world), named: Starter function.

jesuswithBigD
29 Dec, 2023, 02:52

Is the problem from my internet or something when sending the requests? because all the executions are completed

jesuswithBigD
29 Dec, 2023, 02:54

Although some of them returns code 400 as mentioned above.

jesuswithBigD
29 Dec, 2023, 02:54

The project ID is : shabakati

jesuswithBigD
29 Dec, 2023, 12:06

??

Drake
29 Dec, 2023, 16:51

Maybe it's a load problem... Not sure. It's really odd it's a 400 error

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