Why different authorization tokens are used when creating a user and creating an article?

Why, when creating an article, the token is not taken from the registration in this request, but for some reason it is taken from the previous registration. Help who knows


How I found the problem:

I’ve already tried:

@supply-observer-2655

The problem may be related to using the same variable name in the test script and the environment settings.

Why do you need to get the environment variable again in the article request.

Can’t you just call the existing value using {{token}}. Same principle for {{url}}

The const keyword specifies that a variable’s value is constant and tells the compiler to prevent the programmer from modifying it but you have it twice in your code.

It looks like the url and token should be set once at the top of your script, outside of the functions.