Coder Social home page Coder Social logo

Comments (15)

rezarahiminia avatar rezarahiminia commented on August 16, 2024

hi
How many requests per minute?

from free-api-worldcup2022.

phatdq101 avatar phatdq101 commented on August 16, 2024

I requested the same one over 10 times and got the error

from free-api-worldcup2022.

rezarahiminia avatar rezarahiminia commented on August 16, 2024

Please send a curl request

from free-api-worldcup2022.

LalremLian avatar LalremLian commented on August 16, 2024

"status": "error",
"message": "User validation failed: password: Please provide your password, email: Please provide your email, name: Please provide your name"

I'm not able to create an account.

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

"status": "error", "message": "User validation failed: password: Please provide your password, email: Please provide your email, name: Please provide your name"

I'm not able to create an account.

Can we see your curl without the real password please ?

from free-api-worldcup2022.

LalremLian avatar LalremLian commented on August 16, 2024

Can we see your curl without the real password please ?

here's the crul:

curl --location --request POST 'http://api.cup2022.ir/api/v1/user'
--form 'name="Doss"'
--form 'email="[email protected]"'
--form 'password="12345678"'
--form 'passwordConfirm="12345678"'

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

Can we see your curl without the real password please ?

here's the crul:

curl --location --request POST 'http://api.cup2022.ir/api/v1/user' --form 'name="Doss"' --form 'email="[email protected]"' --form 'password="12345678"' --form 'passwordConfirm="12345678"'

You Curl is not correctly encoded i thinks. You should follow the example : curl --location --request POST 'http://api.cup2022.ir/api/v1/user'
--header 'Content-Type: application/json'
--data-raw '{
"name" : "Reza RAhiminia",
"email": "[email protected]",
"password": "",
"passwordConfirm" : "
"
}'

Because actualy you not send the JSON to the server.

from free-api-worldcup2022.

LalremLian avatar LalremLian commented on August 16, 2024

@djdmg

Screenshot_2

I was testing on Postman

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

> @djdmg

Screenshot_2

I was testing on Postman

You should use postman like this:

image

from free-api-worldcup2022.

LalremLian avatar LalremLian commented on August 16, 2024

@djdmg

It's just the same thing bro 😊

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

@djdmg

It's just the same thing bro 😊

No, because you are in form-data instead of raw JSON.

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

@LalremLian
image use like this and is work ;)

from free-api-worldcup2022.

rezarahiminia avatar rezarahiminia commented on August 16, 2024

use like this and is work ;)

@djdmg

Screenshot_2

I was testing on Postman
image

You are using data form which is wrong
You must use raw

from free-api-worldcup2022.

LalremLian avatar LalremLian commented on August 16, 2024

@djdmg @Raminmr Here is an example. I did the same as you guys said to me to do so. Still, I'm facing the error.

Screenshot_4

from free-api-worldcup2022.

djdmg avatar djdmg commented on August 16, 2024

@djdmg @Raminmr Here is an example. I did the same as you guys said to me to do so. Still, I'm facing the error.

Screenshot_4

You have to choose JSON instead of text

from free-api-worldcup2022.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.