-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication failed #167
Comments
Hi @ArazureX, It would be good if you share the below details to investigate this issue further:
|
Hi, I create this foreign table like this: CREATE FOREIGN TABLE "tobo" But, i can`t select this foreign table, and receive Top error, i use PosgreSQL 12.2 & and mongoDB 4.4.14 |
Thanks, @ArazureX for information. This doesn't look like a datatype issue to me. I think, this error is due to wrong username/password. Please cross check the username and password options provided in user mapping. If username and password is correct, then check if that user has read access to mentioned database. Regards, |
I tested password and access on database, all is good |
@ArazureX , good to know that you are able resolve connection problem. This error is because the data type of _id field is not an ObjectId. Currently, column type NAME is compatible only with BSON type ObjectId. As a workaround, you can continue to use text type for _id field. We may work on this in future. Thanks, |
@ArazureX , this issue is may be due to column data type incompatibility between BOSN type on MongoDB and foreign table column data type on Postgresql. Could you please share mongo_fdw version you're using? E.g. `#select mongo_fdw_version();
|
Thanks for the information. To further investigate this issue, could you please share the data type of remote collection fields and data type of foreign table columns of which value is returning as "null". If possible, please share the full foreign table definition and remote collection definition. |
When i create foreing table, i cant select from there and had error.
Can you help please.
The text was updated successfully, but these errors were encountered: