Viewing a Rest end point logs me out of Drupal

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
rjdjohnston's picture

Hello,

We're using Services with Service Views and Rest. When I visit the end point (domain.com/services/rest/tv) the data is displaying correctly but when I navigate to my other screen I find out I have been logged out of Drupal.

This error is displayed when I refresh Drupal:

Notice: Undefined index: rest_server in services_endpoint_callback() (line 196 of /vhosts/dev.worldviewweekend.com/html/sites/all/modules/contrib/services/services.module).

This happens every time I refresh the endpoint.

Any ideas?

Thanks

Comments

bnyceb's picture

We had this issue until we selected "Session Authentication" from the endpoint's Edit screen:

/admin/structure/services/list/[name_of_your_endpoint]

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week