[英]Communication with Datastore and cloud Storage from google Compute engine in Java
[英]I am receiving a 503 when accessing the cloud datastore from a spring boot java app on a google cloud compute instance
我正在為使用Google Cloud數據存儲庫托管在Google Cloud計算實例上的Spring Boot Java Web應用程序進行概念驗證。
這是我所做的:
我試圖將其放入資源(使用@reposoitory)(就像我在本地所做的那樣),我收到:
DatastoreException(Backend Error): beginTransaction 503 com.google.api.services.datastore.client.DatastoreException: Backend Error at com.google.api.services.datastore.client.RemoteRpc.makeException(RemoteRpc.java:115) at com.google.api.services.datastore.client.RemoteRpc.call(RemoteRpc.java:81) at com.google.api.services.datastore.client.BaseDatastoreFactory$RemoteRpc.call(BaseDatastoreFactory.java:41) at com.google.api.services.datastore.client.Datastore.beginTransaction(Datastore.java:77) ... more
我在堆棧溢出上研究了類似的其他問題,答案是:
謝謝您的幫助
在將我的數據集ID發送給Google支持部門的Ed之后,他注意到數據集ID的末尾有一個“零寬度空格” Unicode字符。
我想我在編寫代碼並從Google Developer Console的項目頁面復制它時很懶。
重新設置數據集ID /項目ID可以解決問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.