473,672 Members | 2,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Use STS to access OSS - OSS Access Key Id you provided does not exist in our records

51 New Member
Hi,
I'm trying to use STS to access OSS as described here. My scenario is following:
1) Client react app calls FC Compute Function via API Gateway and submit some information
2) Function validate the information and if it is ok then function calls sts.assumeRole and specify permission to GET* for all resources in OSS using AccessKeyId and AccessKeySecret of sub-account
3) The new STS temporary token is created and it is returned to client
4) Client initialize OSS client with returned AccessKeyId, AccessKeySecret and SecurityToken
5) Client try to download selected file
6) This error is thrown:
Error: The OSS Access Key Id you provided does not exist in our records.
at Client.requestE rror$ (aliyun-oss-sdk.js:619)
at tryCatch (aliyun-oss-sdk.js:15266)
at Generator.invok e [as _invoke] (aliyun-oss-sdk.js:15500)
at Generator.proto type.(anonymous function) [as next] (http://localhost:3000/static/js/bundle.js:12651 6:21)
at onFulfilled (aliyun-oss-sdk.js:6100)

Is there something I'm doing wrong or there could be some problem on OSS?

Thanks for any help,
Marek
Jul 16 '18 #1
1 1988
Andrea1701
34 New Member
Just like Stack Overflow, post your code is you need help with a software development issue.

Include the policy that you are assuming.

The key message is: The OSS Access Key Id you provided does not exist in our records.

Check your code to make sure that you are passing the correct values received from STS to OSS unchanged. The security token is a very long string (base64 encoded credentials).

Two tips that I do on problems like this. I check to make sure that my code works on public read files. Often I find silly mistakes with region handling, etc. Another test is to use normal credentials in-place of STS credentials to check my code. Once those two tests work and all error handling is in place, I then only have to debug the STS logic.
Jul 16 '18 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

20
10140
by: | last post by:
If I need to check if a certain value does exist in a field, and return either "yes" or "not" which query would be the most effestive?
9
4000
by: HJ | last post by:
Hi all, I notice that the Form_Dirty event does not fire in Access 2002 (SP-1) when the first character is typed into a new record. In previous versions of Access it does fire. For existing records that are being edited, the event does fire. Has this (previous) behaviour been changed by Microsoft?
2
2030
by: David C. Barber | last post by:
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code that I've changed to ADO code is working fine, HOWEVER the form Record Source itself does not seem willing to return data. I've set the Record Source to both the query, and the SQL contained within the query, and although the system pauses long enough to have gone out and retrieved the data, I can't see it. The form itself remains gray. In addition: ...
4
1954
by: Andrew Chanter | last post by:
I have been working with an A97 database that performs a data processing function. It imports data from a flat text file then uses a dao transaction that executes a number of sql statements (about 30 in all) to append to various tables, delete records, copy from table A to table B etc, ultimately downloading to a series of text files that contain 'processed data'. The issue is that on the odd occasion (this process is executed every...
1
3854
by: mrkselm | last post by:
Hi, I am stuck with a problem in MS Access which does not occur in SQL Server and I have been banging my head against the wall for a couple of days now trying to resolve it. Namely, when I execute the following query in Access not all records that fit the condition are returned, and when I run this same query in SQL Server all the records I want are retrieved. The query is:
1
1642
by: nram | last post by:
We have an application developed in VS 203 We aretesting the app in WindowsVista The problem we are facing is as follows: The app uses an Access database. When trying to execute a select statement, the application returns 0 records, though when the same query is runin Access it returns all the valid records. Please note that we face this ssue only when the app is run in Vista The details of the codes are as follows: Dim daGetData As...
3
1805
by: JAYO | last post by:
The MySQL table is located in a Linux Server OS, so I need the information from that table for updating Paradox tables in Windows OS. If a PHP program in the Linux Server can save a file with the information I need, can I make a PHP program in Windows OS to get the saved file or even better, to access the table in the Linus Server OS? Do I have another options? Thank you very much in advance Best Regards JAYO
1
2450
by: Bobby | last post by:
Hi I am using Access 2003 mdb as a front end to an application which uses SQL Server 2000 as the backend. The two are connected using ODBC. On one particular table (the Stock table), I have a simple form which updates stock. When the user presses the delete key, he gets the usual warning about not being able to undo this command, and the record disappears from the screen. However, on some records, when he goes back into the form, the...
3
2008
by: david sherman | last post by:
Does software converting excel to access with financial functions exist? I need to take several fixed income portfolio run manually from excel and create a database. The excel relies heavily on excel functions such as yield formula and durations formula. Any software that assists in conversion since i am not an access programmer?
1
4416
by: axkoam | last post by:
Microsoft Access 2007. Background: I have a query that received work orders from out client system and runs them through access. Once in Access, an employee goes through the query output and organizes the records (mentally) by product_code. There can be be 1 or more records of a certain product_code and there are 129 total different product_codes. Say, a typical time the employee runs this query they might see 25 different records consisting...
0
8500
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8943
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8635
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8695
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6254
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
1
2835
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2087
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1834
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.