There is no valid session


#1

I m passing the headers x-dreamfactory-application-name and x-dreamfactory-session-token
to other API calls but it returns---- There is no valid session ?


REST API Architecture (.net service wrapper)
#2

Be sure you’re passing session_token and not session_id, and also that you do not include the quotation marks around the session_token value returned from POST /user/session, e.g.,

Request

POST /user/session { "email": "user@domain.com", "password": "password" }

Response

{
  "session_token":"blahblah",
  "session_id":"yaddayadda",
  "id":47,
  "name":"User Name",
  "first_name":"User",
  "last_name":"Name",
  "email":"user@domain.com",
  "is_sys_admin":false,
  "last_login_date":"2015-10-22 11:50:27",
  "host":"console"
}

In this case you would provide the following value in subsequent calls:

X-DreamFactory-Session-Token: blahblah

If you confirm this and still receive this error, please post your full request and response.


#3

I have the same issue: "There is no valid session"
my system:
Database Version: 1.9.0
DreamFactory Services Platform Version: 1.9.4
Admin Application Version: 1.0.12

POST /user/session { “email”: "user@domain.com", “password”: “password” }
RESPONSE with NO session_token:
{
“id”: 6,
“display_name”: “V1JamesAdmin”,
“first_name”: “James”,
“last_name”: “Kim”,
“email”: "jameski@turneracceptance.com",
“is_sys_admin”: true,
“last_login_date”: “2016-01-27 14:22:45”,
“dsp_name”: “ip-172-31-15-206”,
“ticket”: “3JQRuXuRrA3-Gk0TKqHxsdHxwgagLaNKrhrg8riOKP8,”,
“ticket_expiry”: 1453933701,
“session_id”: “0mvr0pqnliat264rogqluio9m1”,
“app_groups”: [],
“no_group_apps”: [
{
“id”: 1,
“api_name”: “todojquery”,
“name”: “Todo List jQuery”,
“description”: “A simple jQuery application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/todojquery/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
},
{
“id”: 2,
“api_name”: “todoangular”,
“name”: “Todo List AngularJS”,
“description”: “A simple AngularJS application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/todoangular/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
},
{
“id”: 3,
“api_name”: “todosencha”,
“name”: “Todo List Sencha”,
“description”: “A simple Sencha application showing how to create, update, and delete database records on the DreamFactory Services Platform.”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/todosencha/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
},
{
“id”: 4,
“api_name”: “calendar”,
“name”: “Calendar”,
“description”: “A sample application showing how to perform CRUD operations on your DreamFactory Services Platform (DSP).”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/calendar/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
},
{
“id”: 5,
“api_name”: “tac_api”,
“name”: “tac_api”,
“description”: “”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/tac_api/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: true
},
{
“id”: 6,
“api_name”: “cl_api”,
“name”: “Cloud Lending”,
“description”: “”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/cl_api/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
},
{
“id”: 7,
“api_name”: “add”,
“name”: “Address Book”,
“description”: “A sample ExtJS/Sencha application for the DreamFactory Services Platform that runs on desktop and mobile.”,
“is_url_external”: false,
“launch_url”: “https://webservices-dev.turneracceptance.com/files/applications/add/index.html”,
“requires_fullscreen”: false,
“allow_fullscreen_toggle”: true,
“toggle_location”: “top”,
“is_default”: false
}
]
}