Anonymous User Error Triggered by MongoDB Stitch

While utilizing mongodb's stitch backend for running an application, encountering an issue when attempting to log in as an anonymous user. This error is being thrown:

failed to log in anonymously: { StitchError: authentication via 'anon-user' is unsupported
at /*****/*****/*****/****/node_modules/mongodb-stitch/dist/node/common.js:29:19
at
at process._tickCallback (internal/process/next_tick.js:160:7)
name: 'StitchError',
response:
Body {
url: '*****',
status: 401,
statusText: 'Unauthorized',
headers: Headers { _headers: [Object] },
ok: false,
body:
Gunzip {
_readableState: [ReadableState],
readable: false,
domain: null,
_events: [Object],
_eventsCount: 4,
_maxListeners: undefined,
_writableState: [WritableState],
writable: false,
allowHalfOpen: true,
_transformState: [Object],
bytesRead: 81,
_handle: null,
_hadError: false,
_writeState: [Uint32Array],
_outBuffer: ,
_outOffset: 57,
_level: -1,
_strategy: 0,
_chunkSize: 16384,
_flushFlag: 0,
_scheduledFlushFlag: 0,
_origFlushFlag: 0,
_finishFlushFlag: 4,
_info: undefined },
bodyUsed: true,
size: 0,
timeout: 0,
_raw:
[ ],
_abort: false,
_bytes: 57 },
json: { error: 'authentication via \'anon-user\' is unsupported' } }

Certain elements denoted with ***** were excluded for privacy reasons.

Although I have enabled anonymous authentication in the Stitch Admin Console, the error persists. The application is unable to execute any database operations prior to this issue, indicating that it is not related to the app's Rules.

Could there be something regarding anonymous authentication that I am unaware of?

If you possess knowledge about where to find references for mongodb errors, your assistance would be greatly appreciated.

Thank you

Answer №3

To allow users to login anonymously in Stitch Apps, navigate to Users > Providers and activate the option for anonymous login.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

Validation of New Relic License Key

Is there a way to verify the validity of a provided New Relic license key in a JavaScript application? I have searched through the documentation but did not come across any API endpoint for this purpose. UPDATE: Just to clarify, we do not have access to ...

Updating objects within a nested array in a MongoDB collection (nested array modification)

Updated Coupon Collection { "_id": ObjectId("571501b7cbd85fe5ce5a749c"), "storeCode": "LULUMALL", "offers": [{ "name": "offer1", "coupons": [ { "coupon": "adssd", "status": "open" }, { " ...

Encountering the "Cross-Origin Request Blocked" error on the identical domain

My JavaScript code is designed to call a URL that belongs to the same website, so I'm puzzled as to why it's being flagged as "cross-origin". This is the AJAX call in my code: $.ajax({ url: SITE_URL+'ajax_check.php?p='+P_ID, / ...

Authentication through Proxy and requests from nodes

I am attempting to make a get request to a website via https using the request module. However, I am behind a proxy that requires authentication. Despite my attempts to add the authentication, the connection to the site fails. I have experimented with add ...

Is there a way to send an array of objects using axios-http?

Currently, I am utilizing react-dropzone for uploading mp3 files and a metadata npm to extract all the file contents. However, upon sending it to axios.post(), an error is encountered stating "Body Exceeded 1mb limit" Here is the snippet where the new dat ...

Convert numeric month to its 3-letter abbreviation

Receiving the date time value from the server and storing it in a variable named a1: let a1 = (new Date(estimatedServerTimeMs)); console.log of a1 Sun Apr 05 2020 11:36:56 GMT+0530 (India Standard Time) The date is converted to a simpler format such as ...

What is the best way to efficiently input identical data into multiple controllers ($scope) using just one call in AngularJS?

I have a situation where I am using a factory to make a call in two controllers on the same page. However, I want to avoid making an AJAX call twice. I tried using $q.defer(), but it doesn't seem to be working! Here is the code snippet: (function ...

In what ways can the content of <tr> be switched?

Hey there! I've written a cool little script for toggling the content of a table. The content is hidden inside a <div> with the class "hiddenDiv". In order to reveal it, there is a <span> with the class "toggle" that contains a link. Click ...

Setting the initial stage color in Konva can be done by using the `stage.fill

I'm new to using Konva and I was curious if there is a feature that allows me to change the color of the stage. Currently, it defaults to a bright grey which I'd like to adjust without having to manually add a rectangle and fill it with a differe ...

Tips for clearing a highlighted selection in mark.js without affecting other selections:

I have a form set up to highlight matching text as you select checkboxes on the page. It works well when checking boxes, but if you uncheck one box out of many checked, all highlights disappear. I want it to only remove the highlight from the unchecked box ...

Tips for transforming a Vue 2 website into a progressive web application (PWA) were requested

As I explored the PWA functionality in Vue 3, I noticed that it is not available in Vue 2. If anyone has any insights on how to successfully convert a Vue 2 project into a PWA, I would greatly appreciate your input. Thank you! ...

Issue with command execution within execSync in node.js

I am facing an issue where a shell command works fine from the terminal, but when I try to run it from node.js, it gives me an error. Original Command awk -v RS='"[^"]*"' '{n+=gsub(/\n/, "&")} END{print n}& ...

Initial Search Function in a MEAN Stack Site

Working on a MEAN stack application for a school project, I'm almost done but struggling to add search functionality. Creating a search feature for ICD-10 codes in a medical app is my goal. Just need a basic search of symptoms or codes that displays ...

The year 2016 marked a significant advancement in transmitting HTML data to servers

I'm currently extracting data from web pages (similar to a situation with instapaper) and transferring it back to a LOCAL server, not over the internet. Both will be on the same machine, but I want to enhance security measures. Right now, I am retrie ...

Refreshing a Variable's Value in NODE.JS

After much struggle, I've come to the realization that I may have to seek help from the experts on 'StackOverflow' for this issue. Here is my code that continues to baffle me: var express = require('express'), fs = require(&ap ...

Mongoose: Ensuring uniqueness across multiple fields

Looking for a solution to ensure the uniqueness of both email_1 and email_2 in my schema. Specifically, I want to prevent any email from being saved as either email_1 or email_2 if it has already been assigned to another user. var user = new Schema({ // ...

Having trouble retrieving object(stdClass) using twig?

Querying an object from a MongoDB database, I have retrieved the following data: object(stdClass)#22 (9) { ["_id"]=> object(MongoDB\BSON\ObjectID)#19 (1) { ["oid"]=> string(24) "56639b2aa18994f5398b4567" } ["Title"]=> ...

What is the process for updating AWS s3 object metadata while uploading an image through a PUT request to a signed URL?

Is there a way to include the uploaded file name in AWS S3 with a random or unique identifier within a NextJS application? I am able to set metadata from the backend, but I want to know how to update it during the PUT request when the image is being uploa ...

I encountered the "Unknown keystone list" error when I first began using the app on Keystone 4.0

I have implemented routes to post event data. var keystone = require('keystone'); var Event = keystone.list('Event'); module.exports = function (req, res) { if (!req.body.name || !req.body.startTime || !req.body.endTime) { retu ...

What is the best way to access a variable from a class in ES6?

Hey there, I'm having trouble accessing the variable from the KeyCodeClass. Let me walk you through what I've tried so far: Attempt 1 class KeyCodeClass1 { constructor() { this.space; } KeyDown(e) { if (e.keyCode == 3 ...