在我的颤音应用程序中,我试图上传一个图像到Firebase,然后获取URL。图像正在上传,我可以在web接口中看到它,但是当我在有效的引用上调用getDownloadUrl()时(我可以看到使用调试器的相对路径),我得到了type 'NoSuchMethodError' is not a subtype of type 'Exception',而实际的错误发生在method_channel_reference.dart内部,其中由于某种原因,storage为null,因此storage.app抛出了错误。
@override
Future<Strin
在调用 task.getResult().getDownloadUrl().toString(); 我在getDownloadUrl()上遇到错误,不知道为什么?在其上显示红线,无法解析符号 if (task.isSuccessful()){
Toast.makeText(SetupActivity.this, "Profile Image is Stored Successfully to Firebase Storage... ", Toast.LENGTH_SHORT).show();
final String downloadUr
关于新的HttpClient 的角度文档有一节“获取错误详细信息”,其中显示了如下所示的示例。我对注释进行了修改,以记录我观察到的基本错误类在何处结束。
http
.get<ItemsResponse>('/api/items')
.subscribe(
data => {...},
(err: HttpErrorResponse) => {
if (err.error instanceof Error) {
// we never seem to get here
console.log('An erro
我正在尝试ionic和firebase平台,但我遇到了一个问题。
所以我在我试图访问的存储器中有一个图像,我尝试使用getDownloadURL()方法,但是我仍然得到一个错误400,“无效的http方法/url对”。我找不到任何解决方案。尝试使用getMetadata()时出现相同的错误。
firebase已初始化,目前一切正常,身份验证、数据库读取等都很正常。除了这个错误。
我在一个服务中有以下代码..
// Get a reference to the storage service, which is used to create references in your storage
我的Firebase存储getSignedUrl()下载链接可以工作几天,然后停止工作。错误消息是
SignatureDoesNotMatch
The request signature we calculated does not match the signature you provided. Check your Google secret key and signing method.
去年夏天,GitHub上有一篇关于这个问题的长篇,但我看不出有什么解决方案。
我正在考虑从前端使用getDownloadURL(),而不是从后端使用getSignedUrl()。getDownload
我正在尝试将图像的下载url上传到firebase数据库。但是Task Uri imageURL = storageReference.getDownloadUrl();并没有给出存储在防火墙存储中的图像的实际下载URL,也就是说它给出了这个- com.google.android.gms.tasks.zzu@27da5837
在不推荐的情况下,getdownloadUrl()无法工作: Uri imageUrl = storagereference.getdownloadUrl();//给出错误
请参阅这里的代码:
final StorageReference storageReferenc
Service.ts
public welcome(token: any){
let tokenString = "Bearer "+token
console.log("tokenString is: "+tokenString)
let header = new HttpHeaders().set("Authorization",tokenString);
const requestOptions = { headers: header};
return this.httpClient.get(