Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8557387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:33:48+00:00 2026-06-11T15:33:48+00:00

Trying to set up remote_api stubs in my Python 2.7 AppEngine application, to use

  • 0

Trying to set up remote_api stubs in my Python 2.7 AppEngine application, to use datastore access in conjunction with my localhost debugger (test my app using real data). Now, I’ve followed the tutorial on this AppEngine Remote API article and came up with this code (from a REST handler in our application):

from google.appengine.ext.remote_api import remote_api_stub
from model import MyExpandoObject

# This returns my credentials
def auth_func():
    return ("me@gmail.com", "mypassword")

# TODO This too
def get(w_self):
    # Connect remote api in identical way to example docs:
    remote_api_stub.ConfigureRemoteApi(None, '/_ah/remote_api', auth_func,'bsl-dm-hrd.appspot.com')

    # This calls the database (breakpoint here)
    t_entity = MyExpandoObject.get_by_key_name('akey')

Now, when I execute the code, the configuration of the stub passes. Then, when calling the database, I get this error in my debugger:

    BadRequestError: app s~myapp cannot access app dev~myapp's data

This, I believe, is the error I need to fix. Please do note that the s~ indicating this is an HRD application is properly reported as part of the app ID. I have also included the

builtins:
    - remote_api: on

directive in app.yaml.

My question is, why do I get this error? This is literally example code taken from the remote_api article. Just in case, I have also tried remote_api connection through remote_api_shell.py, bundled with the AppEngine SDK, and was able to connect to the datastore, import models and execute database calls. I am stumped as to why this fails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:33:49+00:00Added an answer on June 11, 2026 at 3:33 pm

    You have got mis-matching appids’ You don’t appear to be setting the appid – you have None as the first parameter to ConfigureRemoteApi you may need to set the –partition arg of the dev_server to have the appid you want, and or supply an appid to the ConfigureRemoteApi call

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Python, I'm trying to connect to my AppEngine app's remote_api handler, but I
I'm trying to use the App Engine bulkloader to download entities from the datastore
Trying to set up Cancan within an app of mine and having trouble with
I'm trying to create simple ExtJs application that manages Users and User's Roles. Set
I'm trying to use code-first on an existing Point-Of-Sale kiosk application. This is a
I am trying to use a web browser to test the new service I
I am trying to test my gwt app with gwt junit but seems to
I'm trying to set up a web application for the first time on Amazon
I am trying to set the charset when letting Matlab connect to remote mysql
I am trying to perform SET operations in Oracle across remote databases. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.