Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ember.js/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript Google云存储桶:在GCS中重新加载Ember.js应用程序时发生XML错误_Javascript_Ember.js_Google Cloud Storage_Google Cloud Platform - Fatal编程技术网

Javascript Google云存储桶:在GCS中重新加载Ember.js应用程序时发生XML错误

Javascript Google云存储桶:在GCS中重新加载Ember.js应用程序时发生XML错误,javascript,ember.js,google-cloud-storage,google-cloud-platform,Javascript,Ember.js,Google Cloud Storage,Google Cloud Platform,我们最近将一个托管在Amazon AWS S3存储桶中的Ember.js应用程序迁移到了Google云存储桶中。当我们加载index.html页面时,该应用程序工作得非常好。余烬转换工作正常。但是,当我们直接访问不是项目主要路径的URL(例如,/account settings)或重新加载正在处理的URL时,我们会遇到以下错误: <Error> <Code>NoSuchKey</Code> <Message>The specifie

我们最近将一个托管在Amazon AWS S3存储桶中的Ember.js应用程序迁移到了Google云存储桶中。当我们加载index.html页面时,该应用程序工作得非常好。余烬转换工作正常。但是,当我们直接访问不是项目主要路径的URL(例如,
/account settings
)或重新加载正在处理的URL时,我们会遇到以下错误:

<Error>
    <Code>NoSuchKey</Code>
    <Message>The specified key does not exist.</Message>
</Error>

我的假设是,这与Ember Router和index.html未处理的请求有关?有没有办法告诉Google云存储将所有请求重定向到index.html,以便Ember路由器能够处理它?我在谷歌云文档中找不到任何解决方案来解决这个问题。如何修复此问题?

我通过将我的Google云存储桶的错误页面设置为
index.html
来修复此问题