• UID6676
  • Fans1
  • Follows0
  • Posts2

[Ask for help]The bill file created successfully in oss bucket But with empty data. can you please help us with th

More Posted time:Jul 17, 2019 16:28 PM
I have created the OSS bucket in the Singapore region and call the SubscribeBillToOSS API for both BillingItemDetail and InstanceDetail. The bill file created successfully But with empty data.

Assistant Engineer
Assistant Engineer
  • UID5629
  • Fans9
  • Follows2
  • Posts48
1st Reply#
Posted time:Jul 22, 2019 17:24 PM
Hi abhiraj!
I have a bit of experience with that, can you post here how are you calling that API endpoint? If by CLI, Node SDK, Python SDK... Also if you can provide the code you are using for it would be great, as I can review and see potential errors.
DevOps Outsourcing & APAC Cloud Consulting | https://guztia.com

  • UID6348
  • Fans1
  • Follows0
  • Posts7
2nd Reply#
Posted time:Jul 22, 2019 19:21 PM
Hi Abhiraj,

Please validate that -
* file has right access for reading. Use File > Authorize.
* for accounts: select from following options RAM, Other, and anonymous. Try with Anonymous and see if you can see file contents.
* also check Authorised Operation - Read, RW, Any or is it to deny.

Assistant Engineer
Assistant Engineer
  • UID6091
  • Fans2
  • Follows0
  • Posts52
3rd Reply#
Posted time:Jul 23, 2019 4:52 AM
Hi Abhiraj, I believe since the OSS bucket is created as well the file, the issue is somewhere in the source of the content. If you are using the SDK to have the bill generated can you please share the code (or the steps that you have taken) to work this through.

Last but not least, you need to check the overall explanation of the subscription here. There are 2 comments that you need to look into, first of all you need to make sure that you have authorized the code against, "AliyunConsumeDump2OSSRole". Secondly, it does speak of a delay in the overall process, but since I have not yet experience the delays in the billing I cannot speak more on this. Although do share the code/steps and we will walk you through.

  • UID10192
  • Fans0
  • Follows4
  • Posts1
Posted time:Oct 1, 2020 14:44 PM
Hi abhiraj,

I'm facing same issue, both files got generated, but doesn't contain any data. Is issue ressolved for you?

As per Jag and roura suggestions, i have cross verified all options, all are in place. Using below api through web interface subscribebillToOSS and got empty bills pushed to bucket and bill are empty.https://api.alibabacloud.com/#/?product=BssOpenApi&version=2017-12-14&api=SubscribeBillToOSS&tab=DOC&lang=JAVA

Please suggest any thing, I'm missing.