Here we list the most common errors encountered in Rabobank OAuth 2.0 flow on the client side. These use cases list reason for errors and how to troubleshoot them.
During the Authorization call to get the consent of the user, the TPP may encounter the following:
Invalid client id supplied
You receive an HTTP response of 401 Unauthorized with the message invalid client id or secret while invoking an Authorization flow.
This could be caused by one of the following:
- Invalid client id is supplied in the request.
- Your TPP application is not subscribed to an API using OAuth 2.0.
To solve this issue, your application should be subscribed to an API using OAuth 2.0 and provide a valid client ID.
Redirect URI mismatch
When registering an application, you should provide a redirect URI on the Rabobank developer portal.
If you have more than one redirect URLs listed in the developer portal, make sure to provide one of the redirect URI (as provided during registration) in the redirect_uri query parameter during an Authorization call. If the redirect URI from your request does not match with the one registered on the Rabobank developer portal, you get the following error:

Requesting access token
To access the requested resources, you should exchange the received authorization code for an access token. During the retrieval of the access token, you may encounter the following:
Invalid authorization code (grant type code flow)
The authorization code should be sent to the token endpoint to get the access token. Sending an invalid authorization code (expired, invalid, or already used) results in the below error:
Http status:400(Bad request){"error":"invalid_grant"}
To avoid this error, you should pass the correct authorization code before it expires (expiry: 5 minutes). Make sure to not call the token endpoint multiple times using the same authorization code.
Adding a slight delay of 1000ms before calling this endpoint ensures that the authorization code is in sync across our servers.
Invalid refresh token
Sending invalid Refresh token to get access token results in the below error:
Http status:401(Unauthorized){"error":"invalid_grant"}
The Refresh token is valid for 30 days and can be only used once. To avoid this error, you should pass a valid Refresh token and not use the same token multiple times.
Invalid authorization header
While making a call to the token endpoint, an Authorization header should be provided consisting of a client id and client secret. If an invalid combination is passed, it results in the below error:
Http status:401(Unauthorized){"error":"invalid_client"}
To avoid this error, you should use the correct client id and client secret and make sure that the Authorization header is prepared as specified in the OAuth documentation.
Grant type missing
While making a call to the token endpoint, the grant_type query parameter should be provided. The value of this query parameter is based on the type of authorization you are passing to the endpoint.
For example, if you are swapping an authorization code for an access token the value of the parameter should be the authorization_code.
An example of the error message returned is as below:
Http status:400(Bad request){"error":"invalid_request"}
To avoid this error, make sure to provide all the required parameters, including grant_type.
Requesting resources with an access token
Access token invalid
The Access token issued by the authorization server is valid for 60 minutes for PSD2 and 24 hrs for Premium after receiving. Passing an expired or invalid Access token while accessing the resource results in the following error.
{"httpCode":"401","httpMessage":"Unauthorized","moreInformation":"This server could not verify that you are authorized to access the URL"}
To avoid this error, you should always check the expiry time associated with the access token. If the token is expired, use a Refresh token to receive a new Access token.
If you are unable to get a new access token using the refresh token, it could be because the user consent is either expired or revoked. You can validate the consent using the Consent Details Service API.
If this is the case, you should renew the consent before proceeding.
How to check if the user consent is expired (or) revoked?
Using the information you received during the authorization flow, you can retrieve the consent by a specific Id as explained in the API Consent Details Service documentation.
If the consent status is one of the following, the consent is not valid and cannot be used to access the resources:
- expired
- revokedByPsu
- terminatedByTpp
- received
- rejected
Using an invalid consent results in the following error:
{"httpCode":"403","httpMessage":"Forbidden","moreInformation":"CONSENT_INVALID"}
To access the resource gain, you should follow the authorization flow again and ask the user permission(s) to the required resources.
Deactivated or Expired consent
The consent of the user may be expired or revoked by the user, while your access/refresh tokens are still active, this results in a 403 Forbidden CONSENT_INVALID error message.
You may also check the status of the consent by making a call to Consent Details Service API and re-initiate the consent flow if required.
Not having the required permission to access an API
{"httpCode":"403","httpMessage":"Forbidden","moreInformation":"FORBIDDEN"}
A 403 Forbidden FORBIDDEN error can be triggered if the Access token included in the request does not contain the correct scope for the API being used.
Example: You have an access token for the scope paymentRequest, but you are trying to access the Account information API, this API requires a different scope: ‘ais.balances.read’.
To avoid this error, follow the authorization flow with the correct scope required for your API.
Setting ValidateIssuer = false like @nedstark179 proposes will work but it will also remove a security validation.
If you use a ASP.NET Core template with Individual Accounts (IdentityServer) and receive this error:
WWW-Authenticate: Bearer error="invalid_token", error_description="The issuer 'https://example.com' is invalid"
It is probably related to this issue:
https://github.com/dotnet/aspnetcore/issues/28880
For example a new Blazor Webassembly App with Individual Accounts and ASP.NET Core hosted from Visual Studio.

.NET 6.0 Known Issues only mentions it could happen in development but it can happen in production hosted as an Azure App Service as well.
https://github.com/dotnet/core/blob/main/release-notes/6.0/known-issues.md#spa-template-issues-with-individual-authentication-when-running-in-development
I created an issue about that here:
https://github.com/dotnet/aspnetcore/issues/42072
The example fix for development was not enough.
Started of by adding a new Application settings for the Azure App Service called IdentityServer:IssuerUri with value https://example.com/. This can of course be placed in appsettings.json as well. I then added the code below:
//Used until https://github.com/dotnet/aspnetcore/issues/42072 is fixed
if (!string.IsNullOrEmpty(settings.IdentityServer.IssuerUri))
{
builder.Services.Configure<JwtBearerOptions>(IdentityServerJwtConstants.IdentityServerJwtBearerScheme, o => o.Authority = settings.IdentityServer.IssuerUri);
}
below this code:
builder.Services.AddAuthentication()
.AddIdentityServerJwt();
I have not verified if it matters where the code is placed but AddIdentityServerJwt() calls AddPolicyScheme and .AddJwtBearer(IdentityServerJwtConstants.IdentityServerJwtBearerScheme, null, o => { });. Therefore I deemed it appropriate to set it after this code has been called.
After doing this the app still failed with the same error. I then modified AddIdentityServer like this:
builder.Services.AddIdentityServer(options =>
{
//Used until https://github.com/dotnet/aspnetcore/issues/42072 is fixed
if (!string.IsNullOrEmpty(settings.IdentityServer.IssuerUri))
{
options.IssuerUri = settings.IdentityServer.IssuerUri;
}
})
.AddApiAuthorization<ApplicationUser, ApplicationDbContext>();
and then it started working for me. If you still experience a problem you could also try to set AuthenticatorIssuer like this:
builder.Services.AddDefaultIdentity<ApplicationUser>(options =>
{
options.SignIn.RequireConfirmedAccount = true;
//Used until https://github.com/dotnet/aspnetcore/issues/42072 is fixed
if (!string.IsNullOrEmpty(settings.IdentityServer.IssuerUri))
{
options.Tokens.AuthenticatorIssuer = settings.IdentityServer.IssuerUri;
}
})
.AddEntityFrameworkStores<ApplicationDbContext>();
- Error description
- Short error description in the response
- Example of an error message
If an error occurs, the request processing stops, and the server returns an HTTP response code that identifies the error. In addition to the code, the response contains a short error description.
The error message is returned in the format specified in the request URL after the method name or in the Accept HTTP header.
The error description is passed in the error parameter. This parameter contains the error code (the code parameter) and a short error description (the message parameter).
|
Code |
Name |
Explanation |
|---|---|---|
|
200 |
OK |
The request is successfully completed. |
|
206 |
Partial Content |
The request is partially completed. |
|
400 |
Bad Request |
The request is invalid. |
|
401 |
Unauthorized |
The request doesn’t include authorization data. |
|
403 |
Forbidden |
Incorrect authorization data is specified in the request, or access to the requested resource is denied. |
|
404 |
Not Found |
The requested resource isn’t found. |
|
405 |
Method Not Allowed |
The requested method isn’t supported for the specified resource. |
|
415 |
Unsupported Media Type |
The requested content type isn’t supported by the method. |
|
420 |
Enhance Your Calm |
The resource access restriction is exceeded. |
|
500 |
Internal Server Error |
Internal server error. Try calling the method after a while. If the error persists, contact the Yandex.Market support service. |
|
503 |
Service Unavailable |
The server is temporarily unavailable due to high load. Try calling the method after a while. |
-
For the
400 Bad Requesterror:Description
Explanation
Possible solution
Collection of field must not be emptyThe parameter must not be empty.
Specify at least one element for the parameter.
Invalid status: 'status'Invalid status is specified.
Check if the sent status is correct for order filtering by status.
JSON: {message}The JSON data format contains an error.
Check if the data passed in the request body has the correct JSON format.
Missing fieldThe required parameter isn’t specified.
Specify a value for the required parameter.
The request is too bigThe HTTP request size limit is exceeded.
Cut the request size by reducing the amount of the sent data.
Too long time period. Maximum is 'maxPeriod' daysThe specified date range is too large. Maximum range — maxPeriod.
Reduce the date range to filter orders by date.
Unexpected character 'character': expected a valid value 'values'Invalid character.
Check the request body encoding. The required encoding is UTF-8.
Unexpected end of contentThe request body ends unexpectedly.
Check if the data passed in the request body has the correct format.
Value / length of field (value) must be between min and max [exclusively]The parameter value (length) must be between the min and max values and not equal to them.
Check if the parameter value is correct.
Value / length of field (value) must be greater / less than [or equal to] limitThe parameter value (length) must be equal to or greater than (less than) the specified limit value.
Check if the parameter value is correct.
Value of field has too high scale: 'price'The accuracy of the parameter is set too high.
Set the parameter values with less precision.
Value of field must match the pattern: 'regExp'The parameter value must match the regular expression.
Check if the parameter value is correct.
XML: {message}The XML data format contains an error.
Check if the data passed in the request body has the correct XML format.
Other short descriptions that can be found in messages about this error are provided in the descriptions of the corresponding resources.
-
For the
401 Unauthorizederror:Description
Explanation
Possible solution
Unsupported authorization type specified in Authorization headerAuthorization type passed in the Authorization HTTP header isn’t supported.
Check if the authorization data is correct.
Authorization header has invalid syntaxThe Authorization HTTP header format is incorrect.
Check if the authorization data is correct.
OAuth credentials are not specifiedThe request doesn’t include authorization data.
Check that the authorization data is correct.
OAuth token is not specifiedThe request doesn’t include the authorization token (the oauth_token parameter).
Check if the authorization data is correct.
OAuth client id is not specifiedThe request doesn’t include the application ID (the oauth_client_id parameter).
Check if the authorization data is correct.
-
For the
403 Forbiddenerror:Description
Explanation
Possible solution
Access deniedAccess to the specified resource is prohibited.
Check if the resource is specified correctly, and if the authorized user login has access to it.
Access to API denied for the client / campaignThe client or store isn’t allowed to access the Yandex.Market Partner API.
Agency clients should contact their agency about getting access to the Yandex.Market Partner API.
Client id is invalidThe specified application ID (the oauth_client_id parameter) is invalid.
Check if the authorization data is correct. If they are correct, get a new app ID, repeat the request with the new authorization data.
Scope is invalidThe specified authorization token (the oauth_token parameter) doesn’t have the necessary set of rights.
Get a new authorization token, mention the right to use the Yandex.Market Partner API when you receive it, and repeat the request with the new authorization data.
Token is invalidThe specified authorization token (parameter oauth_token) is invalid.
Check if the authorization data is correct. If they are correct, get a new authorization token, repeat the request with the new authorization data.
User account is disabledThe user account for which the specified authorization token was issued is blocked.
Contact the Yandex.Market support service.
-
For the
404 Not Founderror:Description
Explanation
Possible solution
Feed not found: 'feedId'The price list specified in the request isn’t found.
Check if the sent price list ID is correct.
Login not found: 'login'The username specified in the request isn’t found.
Check if the sent username is correct.
Model not found: 'modelId'The model specified in the request isn’t found.
Check if the model ID you are passing is correct.
-
For the
405 Method Not Allowederror:Description
Explanation
Possible solution
Request method 'method' not supportedThe requested HTTP method isn’t supported.
Check the methods supported by the resource. You can find the list of methods in the Requests reference section.
-
For the
415 Unsupported Media Typeerror:Description
Explanation
Possible solution
Content type 'content-type' not supportedThe requested content type isn’t supported.
Pass one of the supported content types.
Missing Content-TypeThe content type isn’t specified.
Pass the content type.
Unknown content-type: 'content-type'The requested content type is unknown.
Pass one of the supported content types.
-
For the
420 Enhance Your Calmerror:Description
Explanation
Possible solution
Hit rate limit of 'N' parallel requestsExceeded the global limit on the number of simultaneous requests to the Yandex.Market Partner API.
Reduce the number of concurrent requests to the partner API within a single store or partner to N requests.
Hit rate limit of 'N' requests per 'period' for resource 'R'The resource restriction for the N number of requests to the R resource over the period for the same store or partner is exceeded.
The time until which the limit applies is specified in the X-RateLimit-Resource-Until header. You can use of the resource after the specified time.
-
For the
503 Service Unavailableerror:Description
Explanation
Possible solution
Service temporarily unavailable. Please, try again laterThe server is temporarily unavailable due to high load.
Try repeating the request after a while.
Request example:
GET /v2/campaigns.xml HTTP/1.1
Host: api.partner.market.yandex.ru
Accept: */*
Authorization: OAuth oauth_token=,oauth_client_id=b12320932d4e401ab6e1ba43d553d433
Response example:
<response>
<errors>
<error code="UNAUTHORIZED" message="OAuth token is not specified"/>
</errors>
<error code="401">
<message>OAuth token is not specified</message>
</error>
</response>
Request example:
GET /v2/campaigns.json HTTP/1.1
Host: api.partner.market.yandex.ru
Accept: */*
Authorization: OAuth oauth_token=,oauth_client_id=b12320932d4e401ab6e1ba43d553d433
Response example:
{
"errors":
[
{
"code": "UNAUTHORIZED",
"message": "OAuth token is not specified"
}
],
"error":
{
"code": 401,
"message": "OAuth token is not specified"
}
}
0 Пользователей и 1 Гость просматривают эту тему.
- 100 Ответов
- 87955 Просмотров

Проблема такова. Регистрация на сайте как таковом не нужна. Но еще установлен VirtueMart 1.1.3 + Joomla 1.5.14. Для регистрации использую mod_virtuemart_login. Много всего перечитал, что нашлось в поиске. Выполнил действия с кэшем, очистил таблицу с сессиями в БД, ничего не помогает.
А проблема то вот в чем. Допустим при входе или выходе из модуля авторизации VirtueMart перекидывает на такую пустую страницу, с надписью «Invalid Token»
/index.php?option=com_user&task=logout
В стандартном модуле Joomla перекидывает на
index.php
пишется та же ошибка, но при обновлении страницы лечится (в случае выше нет)
Нужен ваш хэлп как это исправить, или хотя бы сделать чтобы из модуля виртуемарта перекидывало на главную, там хоть если обновить то работает.
Если бы только я пользовался этим модулем, т.е. не было бы магазина и надобности в регистрации, то просто бы стирал лишнее в ссылке в строке ввода браузера и опять попадал на главную. Но помимо меня есть еще пользователи.
« Последнее редактирование: 01.12.2010, 21:49:39 от 4webspot »
Записан
СПАСИБО за совет. Реально заработало!
У меня нету магазина, но есть CB и та же проблема.
При авторизации mysite.ru — все ок, а с www.mysite.ru — invalide token. Помогите.
Решил эту проблему путем настройки файла .htaccess в корневой директории где лежит Joomla если его нет создайте его с помощью Блокнота только удалите .txt из имени.
Обратите внимание файл имеет вид .htaccess а не htaccess.txt или .htaccess.txt
В файле должно быть прописано следующее и сохранен он должен быть в директории где joomla
##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
#######################################################
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations. It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file. If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your SEF url's. If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################
## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
RewriteCond %{HTTP_HOST} ^presentall.ru$
RewriteRule ^(.*)$ http://www.presentall.ru/
########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#
########## End - Rewrite rules to block out some common exploits
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
# RewriteBase /
########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|.php|.html|.htm|.feed|.pdf|.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section
В файле может и много лишнего кода но главные две строчки тут это и распологаться они должны сразу после строки RewriteEngine On
RewriteCond %{HTTP_HOST} ^presentall.ru$
RewriteRule ^(.*)$ http://www.presentall.ru/
Делают они следующее если пользователь обращается к сайту по адресу presentall.ru то сделать редирект на www.presentall.ru (который должен быть указан во всех настройках Joomla как основной адрес сайта)
Все проблема решена!
путем настройки файла .htaccess в корневой директории решить проблему не удалось. Более того, при переносе на www слетает некоторый функционал в админке
Invalid Token остался.
Помойму глюк в com_user. Буду разбираться…
« Последнее редактирование: 14.03.2010, 19:39:46 от dimanus »
Записан
у меня наоборот после того как убрал www то ищезло инвалид токен 
но исчезли все пункі виртуал марка
проблемы в компоненте юзер нет… проблема либо в модули либо в неправильной настройке конфига сайта… редирект на www вам поможет если вы жестко прописали в конфиге что сайт с www… из личного опыта такие же проблемы возникают с модулем авторизации от YOO… и еще с рядом расширений. С чистой Joomla я таких проблем не встречал.
Записан
Хочется уникальное расширение? ===>>>> JoomLine — Разрабатываем расширения под заказ.
Использую хостинг TimeWeb и Reg
В файле VirtueMart.cfg.php добавьте www перед адресом вашего сайта. http://site.com —>>> http://www.site.com
Cпасибо большое!
Проблема случилась при переносе сайта интернет магазина (VirtueMart) на хостинг, на локалке все было в порядке. При попытке зарегистрироваться вылезала ошибка Invalid Tolken. Модуль авторизации использовался VirtueMart.
Помогло: В файле VirtueMart.cfg.php добавьте www перед адресом вашего сайта. http://site.com —>>> http://www.site.com
Но: при попытке залогиниться c mysite.ru выбрасывалась ошибка. С www.mysite.ru все стало в порядке.
Помогло: поставить .htaccess редирект, добавив строчки перед строчками с RewriteCond
## fix invalid token
RewriteCond %{HTTP_HOST} ^вашсайт.зона(например com) [NC]
RewriteRule (.*) http://www.вашсайт.зона(например com)/$1 [L,R=301]
Спасибо за это Alisandre78
В чем возможно причина.. цитирую «есть какая — то проблемка с ссылками на сайт с www. и без www.Исходя из этого, нужно чтобы ссылка на регистрацию из виртумартовского модуля логин — шла на тот адрес сайта, который прописан в настройках конфига Joomla — лив сайт адрес. И такой же адрес (с с www. или без www) должен быть прописан в настройках безопасности VirtueMart (вкладка настройки — безопасность — там 2 адреса — должны быть одинаковыми). Если проблема не искореняется используем плагин для редиректа на один из адресов с с www. или без www «
Всем спасибо, что можно найти решение, надеюсь кому-то тоже пригодится..

ps. также вначале была проблема с двойной авторизацией администратора — приходилось два раза вводить логин и пароль, вышесделанное устранило этот косяк тоже.
« Последнее редактирование: 28.01.2011, 13:26:20 от smart »
Записан
У меня сейчас похожая проблема. Если не авторизован на сайте при открытии браузера, то при входе — Invalid token, жмешь Назад — оказываешься уже авторизованным. Если после этого выйти из аккаунта и залогиниться заново, ошибок не возникает. Но если при следующем открытии сайта или браузера окажешься неавторизованным, то все опять повторяется. Это при site.com. При www.site.com вообще почти всегда Invalid token. Уже не знаю что делать.
Между прочим, так и не могу решить эту проблему. Ещё один диагноз — вводя site.com/index.php я авторизован, а просто site.com — нет, плюс еще с www не понятны дела. В общем, под разными именами сайт живет разными жизнями. Уже замучил этот баг, помогите кто-нибудь :O
В общем, поизучав эту проблему, пришел к такому выводу.
Глючат сессии. На страницах с index.php, и без него, они идут параллельно. Без index.php у меня только главная страница. Если не можете помочь с решением этой проблемы, подскажите хотя бы, как сделать, чтобы с главной редиректило на главную/index.php.
Cпасибо большое!
Проблема случилась при переносе сайта интернет магазина (VirtueMart) на хостинг, на локалке все было в порядке. При попытке зарегистрироваться вылезала ошибка Invalid Tolken. Модуль авторизации использовался VirtueMart.
Помогло: В файле VirtueMart.cfg.php добавьте www перед адресом вашего сайта. http://site.com —>>> http://www.site.com
Но: при попытке залогиниться c mysite.ru выбрасывалась ошибка. С www.mysite.ru все стало в порядке.
Помогло: поставить .htaccess редирект, добавив строчки перед строчками с RewriteCond
## fix invalid token
RewriteCond %{HTTP_HOST} ^вашсайт.зона(например com) [NC]
RewriteRule (.*) http://www.вашсайт.зона(например com)/$1 [L,R=301]Спасибо за это Alisandre78
В чем возможно причина.. цитирую «есть какая — то проблемка с ссылками на сайт с www. и без www.Исходя из этого, нужно чтобы ссылка на регистрацию из виртумартовского модуля логин — шла на тот адрес сайта, который прописан в настройках конфига Joomla — лив сайт адрес. И такой же адрес (с с www. или без www) должен быть прописан в настройках безопасности VirtueMart (вкладка настройки — безопасность — там 2 адреса — должны быть одинаковыми). Если проблема не искореняется используем плагин для редиректа на один из адресов с с www. или без www «Всем спасибо, что можно найти решение, надеюсь кому-то тоже пригодится..
![]()
ps. также вначале была проблема с двойной авторизацией администратора — приходилось два раза вводить логин и пароль, вышесделанное устранило этот косяк тоже.
спасибо сторки в .htaccess помогли!
« Последнее редактирование: 05.05.2011, 14:32:14 от smart »
Записан
Сначала вылетало сообщение Invalid Token почистил jos_session удалил кеш, «стала вылетать ошибка Время жизни сессии истекло, авторизуйтесь снова». Причем добавление двух строчек в .htaccess не помогло при этом вообще сервер отказывался сайт открывать, и выдавал ошибку 500. Кто нить знает в чем действительно дело, т.к почитав форум такое ощущение что исправление ошибок это сплошное шаманство а не реальное решение проблемы.
« Последнее редактирование: 28.10.2010, 12:17:04 от web_abuser »
Записан
Вобщем проблема походу четко отслеживается, Joomla различает адресс сайта т.е http://www.site.ru/ и http://site.ru/ т.е если в настройках жестко забито то или иное название то после заполнения формы регистрации то программный код перекидывает на жестко забитый УРЛ. но если изначально он не совпадал, то возникает ошибка. Вероятно это задумывалось как защита от взлома. Поэтому походу выход один — сайт должен полностью работать под жестко заданным УРЛом, т.е проблема решается добавлением двух строчек в файл .htaccess. Но тут сразу же возникает вторая проблема, например у меня на хостинге такое не работает. Сервер сразу показывает пустой экран с ошибкой 500. Рою дальше.
Первый вариант не срабатывал на сервере
RewriteEngine On
#RewriteCond %{HTTP_HOST} ^site.com$
#RewriteRule ^(.*)$ http://www.site.com/
Сработал вариант добавления строчек в .htaccess от пользователя urauraura
а именно
RewriteEngine On
## fix invalid token
RewriteCond %{HTTP_HOST} ^site.com [NC]
RewriteRule (.*) http://www.site.com/$1 [L,R=301]
Спасибо пользователям за подсказки.
Тестирую дальше. пока вроде работает.
« Последнее редактирование: 28.10.2010, 13:56:23 от web_abuser »
Записан
Короче, не знаю что делать, проблема не исчезает никак. Придётся наверное сносить всё нафиг, и заново устанавливать. Хотя уже сомневаюсь, что это поможет.
Я тоже с этой бякой долго мучался. Понял я это дело так.
Глюки возникают из-за того, что сайт существует в двух ипостасях — www.mysite.ru (субдомен) и просто mysite.ru . При различных действиях и условиях (вроде авторизации с отмеченной галкой «запомнить») юзера перебрасывает с одного сайта, на другой. При этом вылезает invalid token, т.к. авторизовывались мы на одном сайте, а попали уже на другой сайт — и здесь мы вроде как не авторизованы. В общем возникает путаница, из-за чего сессия падает. Я нашел такое решение: прописал в настройках вирта адрес сайта (советую без www — просто mysite.ru), а потом настроил жесткое перенаправление со всех адресов с www.mysiteru/* на mysite.ru. Оба действия здесь описывались, надо их только совместить для полной надежности. Мне помогло.
P.S. Похоже протупил, все уже давно описали.
« Последнее редактирование: 03.11.2010, 23:56:30 от lezvoed »
Записан
Да у меня даже вирта нет, а все равно косяки )))
Вот одна из типичных ситуаций моей проблемы:
Отключаю сайт в настройках, закрываю браузер. Открываю заново, захожу на сайт, сайт виден, но я не авторизован. Перейдя на какую-нибудь страницу (новости, например), оказываюсь авторизованным. Если же вместо этого логинюсь с главной — Invalid token (после чего, нажав Назад, возвращаюсь уже авторизованным)
« Последнее редактирование: 04.11.2010, 00:00:54 от Yavich »
Записан
А кнопку «Выйти» перед закрытием браузера жали? По-моему сайт отключается только для уже завершенных сессий. Возможна такая ситуация — сессия корректно не завершена, поэтому а) сайт вам показывается б) при попытке авторизоваться возникает ошибка, т.к. сайт вообще отключен, и главную как бы вообще нельзя увидеть г) жмакаете «назад» и снова видите сайт, т.к. сессия по-прежнему не завершилась.
Нет, выйти конечно не жал. Дело не в том, что сайт выключен, это я просто привёл пример.
Даже когда включен — заходишь, логинишься (с кнопкой Запомнить), потом закрываешь ьраузер, открываешь, заходишь неавторизованным, обновишь страницу — авторизуешься автоматически, а если попытаешься логиниться — Invalid Token. В общем, сессия как будто бы ещё продолжается, но модуль авторизации предлогает логиниться
Можно и без www, главное чтобы при кэшировании, все модули имели такое же время жизни кэша как и в глобальных настройках. При этом, если идет связка с каким-нибудь внешним скриптом (например форумом через Jfusion), то и для него нужно установить такое же время жизни кэша.
При этом не забываем отключить кэширование у модуля входа.
Так что, немного поколдовав, я добился полного исчезновения Invalid Token.
Записан
Сон разума порождает монстров
—
Фрилансом не занимаюсь. Никому ничего не должен. Отвечаю по мере знания и умения. — JFusion — Наше всё! Joomla 1.5.23 SMF 1.1.15 JFusion 1.5.6 JComments 2.2.0 JoomGallery 1.5.6.4 JDownloads 1.8
Спасибо, с помощью .htaccess вопрос решен!
Народ, кому интересно, нашел выход/решение, короче как избавиться от ошибки.
Проблема была немного в другом: для своего сайта мама-папа.ру нашел автора — девушка психолог, которая согласилась написать пару статей о психологии детей. Мне нужно было открыть ей возможность Автора, но получался глюк, в том, что когда она заходила на сайт, и нажимала сохранить статью, то следующая страница была белая с ошибкой Invalid Token. Я тоже и кэш чистил, и старый кэш, и таблицы jos_session в базе, и все куки удалял, и отключал в Joomle кэширование — ничего не помогало. Выход нашелся неожиданный. Вход на сайт происходит через модуль шаблона (сверху у солдатика), смотрите на и если нажимать на выход из этого же модуля, то получается, что вы не вышли до конца. И в последующих входах Joomla не понимает/путается кто вошел. Следовательно выдает ошибку Invalid Token. Я попробовал один раз выйти с помощью модуля самой Joomla, если зарегиться, то он появляется справа. Так вот, если сделать выход через него, а потом опять войти, и сохранить статью, то ошибки не будет.
помогите разобратся с проблемой
после долгого прибывания на сайте на одной любой странице ,когда переходиш на другую выдает такое;
хотя я был авторизован на сайте,вводиш логин , пароль выдаёт Invalid Token. Если вернутся назад и просто перегрузить страницу проходит авторизация
проблема появилась недавно,до этого пол года было все нормально
вот сайт
« Последнее редактирование: 04.12.2010, 00:01:21 от aaleks74 »
Записан
Нет, выйти конечно не жал. Дело не в том, что сайт выключен, это я просто привёл пример.
Даже когда включен — заходишь, логинишься (с кнопкой Запомнить), потом закрываешь ьраузер, открываешь, заходишь неавторизованным, обновишь страницу — авторизуешься автоматически, а если попытаешься логиниться — Invalid Token. В общем, сессия как будто бы ещё продолжается, но модуль авторизации предлогает логиниться
вот у меня таже проблема, интересно выход нашелся ?
вот бывает и такое при переходе с http://мой сайт.ru / на http://мой сайт.ru /index.php
…
## fix invalid token
RewriteCond %{HTTP_HOST} ^вашсайт.зона(например com) [NC]
RewriteRule (.*) http://www.вашсайт.зона(например com)/$1 [L,R=301]
…
Помогло, спс ![]()
вот у меня таже проблема, интересно выход нашелся ?
вот бывает и такое при переходе с http://мой сайт.ru / на http://мой сайт.ru /index.php
Нет, выход до сих пор не найден, перерыл весь интернет — куча решений, но все мимо, сам пробовал всё что можно — не помогает, у друзей веб-программистов спрашивал — не знают. Бред…
Жду финальной версии 1,6, придётся переходить на неё, по ходу это единственный выход 
- Remove From My Forums
-
Question
-
Hi all, I’m using
this sample to understand and run toast notifications in my windows store app.I’ve set everything up but I get the error from the subject when registering the app to the service bus. I read on the «requirements» that the Service Bus SDK Preview is needed so I added it but I got the same error (with or without that package).
I double checked everything and all my credentials look fine.
Can anybody help me out on this one?
TIA.
Regards
http://about.me/sebagomez
-
Edited by
Saturday, October 19, 2013 2:49 PM
missing link
-
Edited by
Answers
-
Ok, I feel stupid now, but of course… it had to do with my code/configuration.
I’ll just post the answer here in case somebody faces the same issue, if you do and you get to solve it with my answer please let me know so I don’t feel lonely 🙂
As the error message clearly says, the token signature was invalid, so I started debugging a little deeper and realized that the getSelfSignedToken function was expecting the sharedKey on the second parameter and I was sending the whole connectionString
because when I initialized my NotificationHub I added this:Endpoint=sb://mynamespase-ns.servicebus.windows.net/;SharedAccessKeyName=DefaultFullSharedAccessSignature;SharedAccessKey=My7cZ4Yx5thisisbullcrapsJCTJxx+UDc4/qc0=
And all I really had to add was the SharedAccessKey, which in my case is:
My7cZ4Yx5thisisbullcrapsJCTJxx+UDc4/qc0=
So, that solved my issue and I hope it helps somebody else 🙂
Regards
http://about.me/sebagomez
-
Proposed as answer by
Dave SmitsMVP
Saturday, October 19, 2013 6:00 PM -
Marked as answer by
Jamles HezModerator
Monday, October 21, 2013 1:09 AM
-
Proposed as answer by